next.js
6a1b6336 - Remove `revalidate` property from incremental cache `ctx` for `FETCH` kind (#76500)

Commit
308 days ago
Remove `revalidate` property from incremental cache `ctx` for `FETCH` kind (#76500) The `revalidate` property of the `ctx` object that is passed into the incremental cache by the patched `fetch` as well as `unstable_cache` is unused since it was introduced in #43659. It was just added because of how the method signature for `set()` was changed back then. However, for those kinds of cache entries, the `revalidate` context property is never used, and instead the `revalidate` property of the passed-in `data` is used. To avoid further confusion (e.g. in [this question](https://github.com/vercel/next.js/pull/76207#discussion_r1968478141)), this PR improves the method signatures and types of the incremental cache so that the different call-site use cases can be clearly discriminated, and superfluous context properties can be omitted.
Author
Parents
Loading