Skip to content

Need to suppress warning about not having memoized selectors. #4670

Answered by aryaemami59
iamtylerd asked this question in Help
Discussion options

You must be logged in to vote

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

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@iamtylerd
Comment options

Answer selected by iamtylerd
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants