kendallroth / my-days

Simple app that counts down/up to important days!
1 stars 0 forks source link

Reduce unnecessary RTK selector calculations #48

Open kendallroth opened 11 months ago

kendallroth commented 11 months ago

Some RTK selectors are returning different referential values when executed with same inputs. This triggers a new dev warning in React Redux v8. There are a number of selectors that incorrectly map state without memoization, which should be fixed/improved.

Selector returned a different result when called with the same parameters. This can lead to unnecessary rerenders. Selectors that return a new reference (such as an object or an array) should be memoized: https://redux.js.org/usage/deriving-data-selectors#optimizing-selectors-with-memoization

AllBitsEqual commented 6 months ago

Any news on this?

kendallroth commented 6 months ago

I have not had a chance to circle back to the app for a while unfortunately, but would also like to update the Expo version, etc if/when I do.

Afaq503 commented 5 months ago

why show this warning affter use redux toolkit WARN Selector unknown returned a different result when called with the same parameters. This can lead to unnecessary rerenders.

Afaq503 commented 5 months ago

okay okay i solve it in my code have some typo