Skip to content

Commit

Permalink
add cache mode no stale
Browse files Browse the repository at this point in the history
  • Loading branch information
stipsan committed Dec 12, 2024
1 parent b5df2b6 commit eb24b75
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions astro/src/sanity/fetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export async function sanityFetch<const QueryString extends string>({
}) {
const {result, syncTags} = await client.fetch(query, params, {
lastLiveEventId,
cacheMode: 'noStale',
filterResponse: false,
})

Expand Down

0 comments on commit eb24b75

Please sign in to comment.