How to use reselect.createStructuredSelector:
4704 4705 4706 4707 4708 4709 4710 4711 4712 4713
initialState: newObject(initialState, InitialState), InitialState: initialState, generatorKey: reducerName, constants: constants }); var mapStateToProps = useHook || !_mapStateToProps ? null : reselect.createStructuredSelector(_defineProperty({}, "".concat(reducerName, "_data"), MakeSelectAuthenticationState())); var authenticationReducer = !isMounted[reducerName] ? injectReducer({ key: reducerName, reducer: reducer }, createReducer) : undefined;
How to use reselect.createSelector:
1376 1377 1378 1379 1380 1381 1382 1383 1384 1385
} return _execute(rest[0], name, array, config, _key, callback); }, [selectReducerKey, refreshKey]); var createdSelector = React.useMemo(function () { return reselect.createSelector(selectState, executeSelector); }, [executeSelector, selectState]); var _selectorData = reactRedux.useSelector(!name || !array ? function (state) { return _execute(state, name, array, config, _key, callback);