Skip to content
#

state-tree

Here are 23 public repositories matching this topic...

atvoid
atvoid commented Mar 15, 2021

When we have multiple iframes with the same origin, we can share objects between different iframe window. But immer produce has a check isPlainObject(), there is a condition "Object.getPrototype(xxx) === Object.prototype", which makes this scenario broken. Because the window.Object.prototype in different iframes have different instances. This condition will return false.

The basic repro example

Improve this page

Add a description, image, and links to the state-tree topic page so that developers can more easily learn about it.

Curate this topic

Add this topic to your repo

To associate your repository with the state-tree topic, visit your repo's landing page and select "manage topics."

Learn more