Awayto bootstrapping function. Loads module structure into redux then bootstraps react. This is done to support the dynamic module structure in general, which includes reducers.
The dev could potentially load the site on any given page which may use any given reducer. So the reducers should be loaded as they will perform the functionality to return any data which may be necessary for the React.lazy component to get past Suspense.
In the future, we want to be more intelligent about how to pick which reducer to load, but it's not a major optimization.
Parameters
renderComponent: JSX.Element
The typical element structure you would give when calling React's render()
Awayto bootstrapping function. Loads module structure into redux then bootstraps react. This is done to support the dynamic module structure in general, which includes reducers.
The dev could potentially load the site on any given page which may use any given reducer. So the reducers should be loaded as they will perform the functionality to return any data which may be necessary for the React.lazy component to get past Suspense.
In the future, we want to be more intelligent about how to pick which reducer to load, but it's not a major optimization.