Open irinelpascu opened 6 years ago
I don't understand this either. Have you found a solution yet?
I was able to do it. In my application when we started we had the state without the normalizr and now we are adding features that use the normalizr.
To make the selector work I did the following.
const myFeatureSchemaSelector = createSchemaSelector
export const featureState = createFeatureSelector(State)('yourFeatureStateName');
export const getMyFeatureStateDenormalized = createSelector( featureState, myFeatureSchemaSelector.getEntities );
I hope it helps @irinelpascu @parallactic-zurich
I cannot understand how I can create a selector to get the feature entities. Trying to get them using the schemaSelectors.getEntities selector throws an error: ERROR TypeError: Cannot read property 'entities' of undefined at normalize.js:99 at store.js:577 at memoized (store.js:519) at defaultStateFn (store.js:546) at store.js:585 at memoized (store.js:519) at store.js:545 at Array.map ()
at defaultStateFn (store.js:545)
at store.js:585