You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After rendering Feature Apps on the server the JS files of the Feature Apps that were rendered on the server need to be loaded before hydrating.
The integrator collects Feature App URLs for hydration via the FeatureAppLoader who knows which Feature Apps have been rendered on the server. The FeatureAppLoader adds the URLs with a addUrlForHydration function that is provided via the FeatureHubContext.
The set of URLs is serialized into the HTML document by the integrator.
On the client the integrator loads the URLs from the HTML document and calls the preloadFeatureApp method of the FeatureAppManager for all URLs before hydrating.
We need to document the known edge case, maybe in the FAQ.
When a server-rendered Feature App view requires additional JS chunks in the client (via code splitting), then we can't guarantee that hydrating works without visual impact.
Not appearing anymore is "Warning: Did not expect server HTML to contain a..."
After rendering Feature Apps on the server the JS files of the Feature Apps that were rendered on the server need to be loaded before hydrating.
addUrlForHydration
function that is provided via theFeatureHubContext
.preloadFeatureApp
method of theFeatureAppManager
for all URLs before hydrating.Tasks
addUrlForHydration
toFeatureHubContextValue
andInternalFeatureAppLoader
interface feat(react): add addUrlForHydration and integrate into FeatureAppLoader #320addUrlForHydration
inFeatureAppLoader
feat(react): add addUrlForHydration and integrate into FeatureAppLoader #320The text was updated successfully, but these errors were encountered: