-
Notifications
You must be signed in to change notification settings - Fork 39
Description
Currently, I don't see any way to pass any configs to the fetch call. One very specific use case where this is going to be necessary is the upcoming next.js app router driven data fetch infrastructure, where next will start caching fetch responses and you will need to pass next.revalidate to fetch calls to configure how long the cache lives.
I don't think this is super high priority as it's also possible to export the revalidate const from a route segment. However, that reduces granularity of control -- i.e. I may have a route segment that consists of multiple DB requests, some of which are more permanent than others and thus can have a longer cache. That said, I also think it's a pretty trivial thing to support, and I'd even be happy to open a PR to implement it, if ya'll at planetscale would be open to accepting such a PR.