-
Notifications
You must be signed in to change notification settings - Fork 27.4k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move AfterContext to WorkStore (#70806)
We want to support `after()` to run after all work has completed. Ideally in any scenario that runs the parent. If there's multiple units of work (e.g. batched Actions) or inner work like `"use cache"` / `unstable_cache`, they should ideally all run at the end to avoid blocking the other work. It's difficult to remember how to wire this up each time we shadow a unit or work. It's simpler just to put this on WorkStore which is where we already have all internal "after" like `pendingRevalidates` and `pendingRevalidateWrites`. This is dependent on having a [WorkStore in Middleware](#70808) where we currently support `after()`. We do not support `after()` in `pages/`.
- Loading branch information
1 parent
f7dc23c
commit 940a5bc
Showing
10 changed files
with
115 additions
and
133 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
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
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
Oops, something went wrong.