reselect
reselect copied to clipboard
Ideas for improving Reselect caching / performance
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
Lenz is contributing this WeakCache implementation to one of Apollo Client's internal dependencies. Worth looking at this at some point just to see what it is:
- https://github.com/benjamn/optimism/pull/599