We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent eb94ef3 commit 6ee897cCopy full SHA for 6ee897c
docs/src/pages/guides/infinite-queries.md
@@ -160,8 +160,8 @@ Manually removing a single value from an individual page:
160
```js
161
const newPagesArray = []
162
oldPagesArray?.pages.forEach(page => {
163
- const newData = page.data.filter(val => val.id !== updatedId)
164
- newPagesArray.push({ data: newData, pageParam: page.pageParam })
+ const newData = page.filter(val => val.id !== updatedId)
+ newPagesArray.push(newData)
165
})
166
queryClient.setQueryData('projects', data => ({
167
pages: newPagesArray,
0 commit comments