Skip to content

Commit

Permalink
Attempt to Fix LazyList Issue, Seems To Work
Browse files Browse the repository at this point in the history
  • Loading branch information
TebogoYungMercykay committed Sep 30, 2024
1 parent 0fb72f4 commit 07164fe
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion frontend/components/LazyList/LazyList.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -70,10 +70,12 @@ export function LazyList<D>({
if (!data) {
return;
}

const newIssuesList = [newData, ...data.pages[0]];

queryClient.setQueryData(fetchKey, {
pages: [
[newData, ...data.pages[0]],
newIssuesList,
...data.pages.slice(1)
],
pageParams: data.pageParams,
Expand Down

0 comments on commit 07164fe

Please sign in to comment.