Skip to content

Commit

Permalink
adjust order
Browse files Browse the repository at this point in the history
  • Loading branch information
promer94 committed Jul 26, 2023
1 parent 087c17c commit 2068585
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion infinite/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,8 @@ export const infinite = (<Data, Error>(useSWRNext: SWRHook) =>
// get the page data from the preload cache
pageData = await req
}
data[i] = pageData
setSWRCache({ data: pageData, _k: pageArg })
data[i] = pageData
}
if (parallel) {
revalidators.push(revalidate)
Expand Down

0 comments on commit 2068585

Please sign in to comment.