Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

379
Vistas
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 Respuestas
Responde la pregunta

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda