apollographql / apollo-client-nextjs

Apollo Client support for the Next.js App Router
https://www.npmjs.com/package/@apollo/experimental-nextjs-app-support
MIT License
358 stars 25 forks source link

0.10.0 (3) switch rehydration mismatch protection to `useSyncExternalStore` #207

Closed phryneas closed 1 month ago

phryneas commented 2 months ago

This would have been the right implementation from the start, but we couldn't do it in the beginning because of a bug in the canary version used at that time. Now it seems to be working nicely.

github-actions[bot] commented 1 month ago

size-limit report πŸ“¦

Path Size
{ ApolloNextAppProvider, NextSSRApolloClient, NextSSRInMemoryCache } from '@apollo/experimental-nextjs-app-support/ssr' (Browser ESM) 7.78 KB (-0.08% πŸ”½)
{ WrapApolloProvider, ApolloClient, InMemoryCache } from '@apollo/client-react-streaming' (Browser ESM) 1.4 KB (-0.63% πŸ”½)
{ buildManualDataTransport } from '@apollo/client-react-streaming/manual-transport' (Browser ESM) 6.27 KB (-0.05% πŸ”½)
@apollo/client-react-streaming (Browser ESM) 2.13 KB (-0.6% πŸ”½)
@apollo/client-react-streaming (SSR ESM) 1.73 KB (-0.4% πŸ”½)
@apollo/client-react-streaming (RSC ESM) 1.33 KB (0%)
@apollo/client-react-streaming/manual-transport (Browser ESM) 6.45 KB (-0.13% πŸ”½)
@apollo/client-react-streaming/manual-transport (SSR ESM) 6.33 KB (-0.1% πŸ”½)
@apollo/experimental-nextjs-app-support/ssr (Browser ESM) 8.41 KB (-0.07% πŸ”½)
@apollo/experimental-nextjs-app-support/ssr (SSR ESM) 8.31 KB (-0.18% πŸ”½)
@apollo/experimental-nextjs-app-support/ssr (RSC ESM) 867 B (0%)
@apollo/experimental-nextjs-app-support/rsc (RSC ESM) 626 B (0%)
relativeci[bot] commented 1 month ago

Job #107: Bundle Size β€” 1.01MiB (~-0.01%).

1b5a903(current) vs e0b4862 main#104(baseline)

[!WARNING] Bundle contains 1 duplicate package – View duplicate packages

Bundle metrics  Change 2 changes Improvement 1 improvement
                 Current
Job #107
     Baseline
Job #104
Improvement  Initial JS 890.58KiB(~-0.01%) 890.59KiB
No change  Initial CSS 0B 0B
Change  Cache Invalidation 21.11% 0.04%
No change  Chunks 24 24
No change  Assets 45 45
No change  Modules 512 512
No change  Duplicate Modules 30 30
No change  Duplicate Code 1.29% 1.29%
No change  Packages 29 29
No change  Duplicate Packages 1 1

Bundle size by type  Change 1 change Improvement 1 improvement
|            |       Current
[Job #107](https://app.relative-ci.com/projects/fukE5WxC5RnzLcZncFJw/jobs/107-iv5pzDA1vV1IKg8DZon5?utm_source=github&utm_medium=pr-report "View job report") |      Baseline
[Job #104](https://app.relative-ci.com/projects/fukE5WxC5RnzLcZncFJw/jobs/104-KtwBvALpwE8clyGMA8Y5?utm_source=github&utm_medium=pr-report "View baseline job report") | |:--|--:|--:| | Improvement  [JS](https://app.relative-ci.com/projects/fukE5WxC5RnzLcZncFJw/jobs/107-iv5pzDA1vV1IKg8DZon5/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-1_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-0%22%7D "View JS assets") | `1023.84KiB` (`~-0.01%`) | `1023.85KiB` | | Not changed  [Other](https://app.relative-ci.com/projects/fukE5WxC5RnzLcZncFJw/jobs/107-iv5pzDA1vV1IKg8DZon5/assets?ba=%7B%22filters%22%3A%22ft.CSS-0_ft.JS-0_ft.IMG-0_ft.MEDIA-0_ft.FONT-0_ft.HTML-0_ft.OTHER-1%22%7D "View Other assets") | `5.99KiB` | `5.99KiB` |

View job #107 report View pr/uSES branch activity View project dashboard