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

394
Vistas
immer - Uncaught TypeError: Cannot perform 'getPrototypeOf' on a proxy that has been revoked

I'm using immer in my codebase, a bit of code that appears to be totally valid immer is throwing this error: Uncaught TypeError: Cannot perform 'getPrototypeOf' on a proxy that has been revoked.

This is my code:

produce(obj, draft => {
    draft.field = produce(otherObj, otherDraft => {
         const {a} = draft
         if (a) {
             ...
             more non-immer code, other than assigning to draft/otherDraft
         }
     })
})

Is this possibly caused by nesting the produces? I'm having difficulty understanding the error or why I would be seeing it due to this code.

about 4 years ago · Juan Pablo Isaza
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