You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I've found this to be a useful utility for creating reference selectors which simply select members, but can have a long-lived permanently memoized version. As it's type-only it doesn't have any overhead to add it to the bundle.
/** SELECTORS */typeMemberSelectors<TextendsRootState>={[kinkeyofT]?: (state: T)=>T[k];};/** Memoized selectors for named members */exportconstSELECTORS={searchPostings: (state)=>state.searchPostings,searchTerms: (state)=>state.searchTerms,focusSavedMs: (state)=>state.focusSavedMs,}asconstsatisfiesMemberSelectors<CacheState>;
The text was updated successfully, but these errors were encountered:
I've found this to be a useful utility for creating reference selectors which simply select members, but can have a long-lived permanently memoized version. As it's type-only it doesn't have any overhead to add it to the bundle.
The text was updated successfully, but these errors were encountered: