I am trying to take advantage of on demand revalidation in NextJs 13 - Data Fetching: Revalidating | Next.js
It requires tagging the fetch request. Is it possible to do this with SS typescript client or I must use fetch directly?
I am trying to take advantage of on demand revalidation in NextJs 13 - Data Fetching: Revalidating | Next.js
It requires tagging the fetch request. Is it possible to do this with SS typescript client or I must use fetch directly?
Looks like it uses the fetch
object directly, although you can try modifying the fetch request body with a requestFilter, e.g:
client.requestFilter = req => req.next = { tags: ['collection'] }