Mark Erikson
Mark Erikson
Just ran across these lovely functions in the wild: - https://github.com/flipt-io/flipt/issues/2444 ```ts export const selectFlag = createSelector( [ (state: RootState, namespaceKey: string, key: string) => { const flags = state.flags.flags[namespaceKey];...
- https://github.com/sgrishchenko/reselect-utils - https://github.com/heyimalex/reselect-map
Some interesting cache-related implementations: - https://sourcegraph.com/github.com/signalapp/Signal-Desktop@2a4166a8360e02e01f343723a65de6f7cb748701/-/blob/ts/util/memoizeByRoot.ts - https://github.com/facebook/react/blob/0b974418c9a56f6c560298560265dcf4b65784bc/packages/react/src/ReactCache.js#L55-L126
Both the "Essentials" and "Fundamentals" tutorials are currently showing `ReactDOM.render()`, and that needs to be update to match React 18.
In v7, we definitely bailed out of `useSelector` if the store state hadn't changed: https://github.com/reduxjs/react-redux/blob/49f768082e5c56930e943a3a9b0a60249bce1914/src/hooks/useSelector.js#L67-L71 Per https://github.com/reduxjs/redux/pull/4627 , there's questions of whether it still does that correctly in v8 with...
- Ref: https://github.com/reduxjs/redux-toolkit/issues/3842 and many others I wonder if we could somehow do a debug check inside of `` , check for the existence of `useIsomorphicLayoutEffect`, and throw a more...
https://github.com/simonihmig/tracked-redux uses autotracking to selectively update UI components that depend on specific changed pieces of state. I already ported that logic to Reselect, in https://github.com/reduxjs/reselect/pull/605 . I wonder if there'd...
This PR: - Has a totally WIP prototype POC reworking of `Subscription` and `useSelector` to try using autotracking to optimize subscription behavior and avoid executing subscriber+selector callbacks that we already...
The React team is finally ditching the "can't call `useLayoutEffect` on the server" warning: - https://github.com/facebook/react/pull/26395 At some point we can hopefully stop using the `useIsomorphicLayoutEffect` hack.
Thread: - https://twitter.com/k_woodhouse93/status/1585713986569637888 - https://twitter.com/k_woodhouse93/status/1585921284902252545 - Repro: https://twitter.com/k_woodhouse93/status/1586308416871489537 - https://github.com/kwoodhouse93/ink-redux-repro - Replay (possibly crashing): https://app.replay.io/recording/replay-of-distclijs--797ca851-8c51-44c5-ba2f-ece05da30960