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

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

Open
hguillermo opened this issue Mar 26, 2018 · 0 comments

Comments

@hguillermo
Copy link

hguillermo commented Mar 26, 2018

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?

@hguillermo hguillermo changed the title App component rendered twice App component rendered twice because of AsyncComponentProvider wrapper Mar 26, 2018
@hguillermo hguillermo changed the title App component rendered twice because of AsyncComponentProvider wrapper App component rendered twice because of AsyncComponentProvider wrapper in RU Mar 26, 2018
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