-
-
Notifications
You must be signed in to change notification settings - Fork 375
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
window[LOADABLE_STATE] is not working #67
Comments
@neoziro I think I found a possible solution:
The function has to wait for the window to be fully loaded and then I have to wrap it in a Promise, in order to return only when the window is loaded. Do you think this is a bug or do you think I might missing something somewhere? |
Ah good workaround. In fact |
Thanks for the reply, I moved the |
No I don't think so. You should add scripts at the end of the body, this is the way to setup all React stuff so I think it is OK like that. |
I'm trying to use this lubrary with SSR, but I keep receiving this error
loadable-components state not found. You have a problem server-side. Please verify that you have called
loadableState.getScriptTag()server-side
. I dive into the module and I put aconsole.log(window)
in theloadComponents()
function, the result contains this:but if I do
console.log(window[LOADABLE_STATE]);
is returningundefined
.Do you have any clue about what is happening?
The text was updated successfully, but these errors were encountered: