redux-toolkit: [1.5.0] Call stack exceeded when using selectors created from createDraftSafeSelector or entityAdapter.getSelectors

We are running into an extremely weird issue with the new 1.5.0 release where in a production build, any selector created from createDraftSafeSelector or entityAdapter.getSelectors() will throw a call stack exceeded when used within our application. In a dev build everything works perfectly fine, which has made this a huge pain to debug.

We were able to resolve this by downgrading to 1.4.0. I have used redux toolkit for multiple projects in the past and am not doing anything out of the ordinary in this one, (no recursive or non-serializable values in state)

Any ideas if this is our problem or a bug within createDraftSafeSelector?

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 18 (5 by maintainers)

Most upvoted comments

For what it is worth, I had this bug in 1.5.1 but it seems to be resolved in 1.6.2