react-async-component icon indicating copy to clipboard operation
react-async-component copied to clipboard

App component rendered twice because of AsyncComponentProvider wrapper in RU

Open hguillermo opened this issue 7 years ago • 0 comments

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 avatar Mar 26 '18 21:03 hguillermo