Skip to content

Commit

Permalink
test: update the revalidate function test for useSWRInfinite (#2955)
Browse files Browse the repository at this point in the history
  • Loading branch information
koba04 committed May 2, 2024
1 parent cc9fc25 commit 52be485
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/use-swr-infinite.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1861,7 +1861,7 @@ describe('useSWRInfinite', () => {
return (
<div
onClick={() => {
boundMutate(undefined, {
boundMutate(data, {
// only revalidate 'apple' & 'pineapple' (page=2)
revalidate: (d, [_, i]: [string, number]) => {
return d === 'apple' || i === 2
Expand Down

0 comments on commit 52be485

Please sign in to comment.