Skip to content

App component rendered twice because of AsyncComponentProvider wrapper in RU #80

Open
@hguillermo

Description

@hguillermo

Hi @ctrlplusb

I am using the react-universally for a project and I noticed that the App component it is being rendered twice. The cause of the issue is the AsyncComponentProvider wrapper

  // Declare our React application.
  const app = (
    <AsyncComponentProvider asyncContext={asyncComponentsContext}>
      <StaticRouter location={request.url} context={reactRouterContext}>
        <App />
      </StaticRouter>
    </AsyncComponentProvider>
  );

This happens even if the DemoApp. Is this a known issue for the AsyncComponentProvider?

Activity

changed the title [-]App component rendered twice[/-] [+]App component rendered twice because of AsyncComponentProvider wrapper[/+] on Mar 26, 2018
changed the title [-]App component rendered twice because of AsyncComponentProvider wrapper[/-] [+]App component rendered twice because of AsyncComponentProvider wrapper in RU[/+] on Mar 26, 2018
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

        @hguillermo

        Issue actions

          App component rendered twice because of AsyncComponentProvider wrapper in RU · Issue #80 · ctrlplusb/react-async-component