You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In large builds, multiple packages may depend on redux-components. This can cause duplicate copies to end up in a webpack bundle.
This, in turn, causes multiple instances of key objects like the ReduxComponent base class, which causes instanceof() to fail to properly detect ReduxComponents that come from another copy of the library.
The ultimate manifestation of this is cannot mount something that isn't an instance of ReduxComponent errors in dev invariant mode.
We should consider storing critical information on a global object, or perhaps using something like React 15's $$typeof symbol.
The text was updated successfully, but these errors were encountered:
wcjohnson
changed the title
Interoperabiliity between duplicate copies of redux-components
Interoperabiliity between duplicate copies of redux-components library in a bundle
Mar 12, 2017
In large builds, multiple packages may depend on redux-components. This can cause duplicate copies to end up in a webpack bundle.
This, in turn, causes multiple instances of key objects like the ReduxComponent base class, which causes
instanceof()
to fail to properly detect ReduxComponents that come from another copy of the library.The ultimate manifestation of this is
cannot mount something that isn't an instance of ReduxComponent
errors in dev invariant mode.We should consider storing critical information on a global object, or perhaps using something like React 15's $$typeof symbol.
The text was updated successfully, but these errors were encountered: