next.js
aef9154e - [Segment Prefetch] Move access token to route tree (#72775)

Commit
1 year ago
[Segment Prefetch] Move access token to route tree (#72775) Since prefetches include only static data, and are generated during the server prerender, we can actually lift all the tokens to the route tree prefetch. It's only once we start supporting dynamic conditional routes that the tokens will need to provided by the layout. This is nice because it means we can parallelize the segment prefetches after all.
Author
Parents
Loading