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
This use of window means that general-store cannot be required at all on the server because a ReferenceError is thrown when window is accessed.
Also, when Immutable is loaded as a module it does not define Immutable on window. This means that if general-store and immutable are required by browserified code GeneralStore will not use Immutable.is.
The text was updated successfully, but these errors were encountered:
dantman
added a commit
to dantman/general-store
that referenced
this issue
Aug 3, 2015
- Checks that `window` exists, before trying to use it.
- Before using `window.Immutable` try `require("immutable")`.
- Declare 'immutable' as an external so Immutable will not be bundled into dist/ and browserify will check to see if Immutable is defined outside the static bundle.
dantman
added a commit
to dantman/general-store
that referenced
this issue
Aug 11, 2015
- Checks that `window` exists, before trying to use it.
- Before using `window.Immutable` try `require("immutable")`.
- Declare 'immutable' as an external so Immutable will not be bundled into dist/ and browserify will check to see if Immutable is defined outside the static bundle.
GeneralStore uses
window.Immutable
in the code.This use of
window
means thatgeneral-store
cannot be required at all on the server because a ReferenceError is thrown whenwindow
is accessed.Also, when Immutable is loaded as a module it does not define Immutable on
window
. This means that ifgeneral-store
andimmutable
are required by browserified code GeneralStore will not useImmutable.is
.The text was updated successfully, but these errors were encountered: