Closed benax-se closed 9 months ago
The example of avoiding redundant selector calls by using useCallback on the weakMapMemoize page is non-working We still have the same instance of selector, so the cache will share to all the component instances using the same selector
https://codesandbox.io/p/sandbox/reselect-usecallback-demo-y8wldt
yep, agreed - a PR to remove the example (or replace it with a version that works) would be welcome :)
The example of avoiding redundant selector calls by using useCallback on the weakMapMemoize page is non-working We still have the same instance of selector, so the cache will share to all the component instances using the same selector
https://codesandbox.io/p/sandbox/reselect-usecallback-demo-y8wldt