Skip to content
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

Solved : Flashing LoadingComponent and render twice #81

Open
Aetherall opened this issue Apr 11, 2018 · 0 comments
Open

Solved : Flashing LoadingComponent and render twice #81

Aetherall opened this issue Apr 11, 2018 · 0 comments

Comments

@Aetherall
Copy link

I post this here in case someone encounter the issue

you need to set window.ASYNC_COMPONENTS_STATE before your script tag pointing to /main.js

seems logic but i lost 15mn with this ><

<html>
    <body>
        <div id="root">${html}</div>
        <script type="text/javascript">
            window.ASYNC_COMPONENTS_STATE = ${serialize(asyncState)}
        </script>
        <script type="text/javascript" src="/main.js"></script>
    </body>
</html>

Hope it helps someone

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant