Open g12i opened 3 months ago
Instead of this being Next.js specific, not sure if it might be better to just allow customization of any fetch
option?
Yeah, I agree @bnjmnt4n. Let me make a quick update
Hello @soedirgo, any chance this gets reviewed?
What kind of change does this PR introduce?
This adds a possibility to pass any fetch options (e.g.
next
options to fetch while building the query.What is the current behavior?
Currently we can pass fetch at
PostgrestBuilder
creation. Which effectively means once, if using Supabase. One would have to parse URL and alter options depending on the URL. E.g. for passingnext.tags
optionsWhat is the new behavior?
Allow to pass
fetchOptions
options when building query. The idea here isBecause FetchOptions include
signal
, it is marked as deprecated and uses.fetchOptions
internally.