Need to suppress warning about not having memoized selectors. #4670
-
I have 100's of warnings like this. We obviously plan / want to fix this, but it will be tech debt and something we can not do immediately. Is there a way to suppress these warnings / or even better to not have redux run this check until we can get into a better state? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
You can disable it for all selectors globally: <Provider store={store} stabilityCheck="never">
<App />
</Provider> Or you can disable it per selector: const selectItems = useSelector((state: RootState) => state.items, {
devModeChecks: { stabilityCheck: "never" },
}) You can read more about it here |
Beta Was this translation helpful? Give feedback.
You can disable it for all selectors globally:
Or you can disable it per selector:
You can read more about it here