Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

378
Views
Is there a way to set the serializableCheck to false for one reducer only in redux?

Currently I have disabled the serializableCheck in my store.js and it works, however I'd prefer if I could only set it to false for one reducer in particular, and keep it set to true for all the rest.

export const store = configureStore({
        reducer: {
            app: appReducer,
            settings: settingsReducer,
            admin: adminReducer,
            popout: popoutReducer,
        },
        middleware: getDefaultMiddleware({
            serializableCheck: false,
        }),
    });

I'm aware disabling this check can cause issues in the future, I only have one reducer where I want this check to be disabled.

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

Per the docs at https://redux-toolkit.js.org/api/serializabilityMiddleware , you should be able to use the ignoredPaths option to provide a keypath string to ignore in the state:

configureStore({
  reducer: rootReducer,
  middleware: (getDefaultMiddleware) => getDefaultMiddleware({
    serializableCheck: {
      ignoredPaths: ['someSlice.nested.field']
    }
  })
})

That said, I'd still recommend finding ways to store serializable values in the state instead.

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!