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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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

        Participants

        @Aetherall

        Issue actions

          Solved : Flashing LoadingComponent and render twice · Issue #81 · ctrlplusb/react-async-component