Skip to content

Solved : Flashing LoadingComponent and render twice #81

Open
@Aetherall

Description

@Aetherall

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions