-
Notifications
You must be signed in to change notification settings - Fork 26.8k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Today we scope the entire work store with a RequestStore. This is because prerenders still have some dependency on this store existing. We want to get rid of this but to do so we need to ensure there is a RequestStore around the renders inside renderToStream. This change adds the necessary scoping inside renderToStream. Today this is redundant but it sets us upto be able to remove the outer RequestStore scope. In addition I removed the withRequestStore helper. We generally don't want to construct a new RequestStore for everything we will scope in a RequestStore scope so we can just create the store and then wrap the necessary functions with workUnitAsyncStorage.run...
- Loading branch information
Showing
2 changed files
with
67 additions
and
30 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters