ctrlplusb/react-async-component

App component rendered twice because of AsyncComponentProvider wrapper in RU

hguillermo opened this issue · 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?