Closed shahreaz0 closed 1 week ago
Yes.
Above code in xior:
import xior from 'xior';
xior.get('https://...', { next: { revalidate: 3600 } })
// with POST
xior.post('https://...', {a: 1, ...data}, { next: { revalidate: 3600 } })
import xior from 'xior';
export default async function Page() {
const res = await xior.get('https://...', { next: { tags: ['collection'] } })
// const res = await xior.post('https://...', {}, { next: { tags: ['collection'] } })
const {data} = res
// ...
}
Same issue: https://github.com/developit/redaxios/issues/100
Like this.