-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New "customPages" option on useInfiniteQuery (#147)
* New "customPages" option on useInfiniteQuery * dont' reset entity store * expand changeset
- Loading branch information
Showing
2 changed files
with
24 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
--- | ||
'@soundxyz/graphql-react-query': minor | ||
--- | ||
|
||
New "customPages" option on useInfiniteQuery | ||
|
||
This option can be used to be able to add a list of arbitrary pages of data into the resulting "orderedList" data. | ||
One use-case is for optimistic operations to be able to have temporary pages that are going to be in the pagination ordered results. | ||
|
||
This list is recommended to be memoized or live outside of the React life-cycle using solutions like Valtio. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters