Skip to content

IE11 and Immer in a NextJS Environment #1302

Answered by markerikson
citygent asked this question in Q&A
Discussion options

You must be logged in to vote

Hmm. We do automatically call enableES5 already, but we did change where that call is made in RTK 1.6.

Previously, we did it directly in the index.ts entry point file. In 1.6, we changed it to be inside of createReducer:

// We deliberately enable Immer's ES5 support, on the grounds that
// we assume RTK will be used with React Native and other Proxy-less
// environments. In addition, that's how Immer 4 behaved, and since
// we want to ship this in an RTK minor, we should keep the same behavior.
enableES5()

Are you actually using createSlice or createApi anywhere in the cod…

Replies: 1 comment 4 replies

Comment options

You must be logged in to vote
4 replies
@citygent
Comment options

@markerikson
Comment options

@citygent
Comment options

@citygent
Comment options

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