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
@@ -283,7 +283,9 @@ Before rendering your application you have to ensure - all parts are loaded.
283
283
`rehydrateMarks` accepts a list of `marks` from a server side(`drainHydrateMarks`), loads all
284
284
necessary chunks and then resolves.
285
285
286
-
## A VERY IMPORTANT MOMENT
286
+
<aname="concurrent-loading"/>
287
+
288
+
## A VERY IMPORTANT MOMENT - Concurrent Loading
287
289
All other code splitting libraries are working a bit differently - they amend `webpack` building process,
288
290
gathering information about how the final chunks are assembled, and __injects the real scripts and styles__ to the server response,
289
291
thus all scripts, used to render something on the Server would be loaded in a parallel in on Client.
@@ -438,11 +440,17 @@ React-imported-component break this cycle, making ServerSide rendering sync, and
438
440
comprehensive ways to rehydrate rendered tree on client.
439
441
It will detect server-side environment and precache all used components.
440
442
441
-
###Bundler independent SSR
443
+
###Bundler independent SSR
442
444
It does not matter how do you bundle your application - it could be even browser. The secrect sause is a __cli__ command, to extract all your imports into imports map, and use it later to load chunks by request.
443
445
- You might even dont have any separated chunk on the server side - it would still works.
444
446
- You might even ship module/nomodule scripts, using, for example, [devolution](https://github.com/theKashey/devolution) - no additional configuration would be required.
445
447
448
+
### Not using React.Lazy with React-Hot-Loader
449
+
There is design limitation with React.lazy support from RHL size, so they could not be reloaded without
450
+
state loss if `lazy` is created not in the user space. At it would be created inside imported.
451
+
452
+
If React-Hot-Loader is detected `lazy` switches to `imported async` mode, this behaves absolutely the same.
453
+
446
454
## Other loaders
447
455
Another loaders exists, and the only difference is in API, and how they manage (or not manage) SSR.
0 commit comments