Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(server): add extractCriticalToChunks (#2334)
* init * add some resets * updates * fixes * cleanup * Update packages/server/types/create-instance.d.ts Co-authored-by: Mateusz Burzyński <[email protected]> * Update packages/server/src/create-instance/extract-critical2.js Co-authored-by: Mateusz Burzyński <[email protected]> * adress comments * tests * flow fixes * Improve auto-rehydration for global styles when using extractCritical2 * Fixed constructStyleTags to include all ids correctly * Update packages/server/types/create-instance.d.ts Co-authored-by: Mateusz Burzyński <[email protected]> * Update packages/server/src/create-instance/construct-style-tags.js Co-authored-by: Mateusz Burzyński <[email protected]> * fix flow issues & update tests * Update packages/react/__tests__/rehydration.js * tweak test title * renamed to extractCriticalToChunks * spacings * spacing * Fixed an issue with Global styles being reinjected when rehydrating * resolve comments * test updates * Fixed issue with global styles being sometimes owned by multiple sheets after hydration * Add tests for global rehydration * add comment about why the data-attribute is reset in <Global/> * fix flow errors * Revert merging layout effects in <Global/> * Update packages/server/src/create-instance/extract-critical-to-chunks.js * Create tidy-feet-buy.md * Create chilly-clocks-jam.md Co-authored-by: Mateusz Burzyński <[email protected]> Co-authored-by: Mitchell Hamilton <[email protected]>
- Loading branch information