Skip to content

Commit

Permalink
feat(demo): fetch revalidateCallback
Browse files Browse the repository at this point in the history
  • Loading branch information
AliMD committed Nov 5, 2022
1 parent 2da7dc5 commit 55a58b7
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions demo/fetch/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@ for (const button of buttons) {
timeout: +document.querySelector<HTMLSelectElement>('#timeout')!.value,
cacheStrategy: document.querySelector<HTMLSelectElement>('#cacheStrategy')!.value as CacheStrategy,
removeDuplicate: document.querySelector<HTMLSelectElement>('#removeDuplicate')!.value as CacheDuplicate,
async revalidateCallback(response) {
console.log('Demo revalidateCallback: %o', {url, response, text: await response.text()});
},
});
console.log('Demo response: %o', {url, response, text: await response.text()});
}
Expand Down

0 comments on commit 55a58b7

Please sign in to comment.