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
) and I am sending this with ...window.__INITIAL_STATE__ = ${transit.toJSON(initialState)};... (which is, as denoted by the ```, part of a template string that is sent on every page request) to be reevaluated with const store = configureStore(transit.fromJSON(window.__INITIAL_STATE__));. However, this produces the error `Uncaught SyntaxError: Unexpected token ~ in JSON at position 0` and the app, from what I can tell, does not actually load; it just displays what was prerendered. The JSON that is sent, according to chrome dev tools, is:
I'm trying to send my redux state preloaded for a universal react app (with the format:
) and I am sending this with
...window.__INITIAL_STATE__ = ${transit.toJSON(initialState)};...
(which is, as denoted by the ```, part of a template string that is sent on every page request) to be reevaluated withconst store = configureStore(transit.fromJSON(window.__INITIAL_STATE__));
. However, this produces the error `Uncaught SyntaxError: Unexpected token ~ in JSON at position 0` and the app, from what I can tell, does not actually load; it just displays what was prerendered. The JSON that is sent, according to chrome dev tools, is:The text was updated successfully, but these errors were encountered: