我有以下选择器
const getLinkFeatureState = createFeatureSelector<ILinkReducer>('link');
export const getLinkIsLinkDtoPricesDeliveryTimesSome = (index: number) => createSelector(
getLinkFeatureState,
state => state.linkDto.prices[index].deliveryTimes.some(d => d.iso == state.???)
)
现在我想使用我的另一个减速器的状态
export interface ISelectedLanguageReducer {
language: ILanguage;
isLanguageSuccess: boolean;
}
const selectedLanguageInitial: ISelectedLanguageReducer = {
language: {
country: '',
value: '',
selected: false
},
isLanguageSuccess: false
}
使用以下选择器
const getSelectedLanguageFeatureState = createFeatureSelector<ISelectedLanguageReducer>('selectedLanguage');
export const getSelectedLanguageLanguage = createSelector(
getSelectedLanguageFeatureState,
state => state.language
);
有什么方法可以在“链接”选择器中获取所选语言或在选择器中使用选择器?