updateQuery - #211
Closed
denisborovikov wants to merge 1 commit into
Closed
Conversation
Since updateQuery was removed in 1.0.0 these parts should be removed or rewritten.
| - If you want to force the query to prefetch again, you can pass the `force: true` option in the query config | ||
| - If the query does not exist, it will be created and immediately be marked as stale. **If this created query is not utilized by a query hook in the `cacheTime` (defaults to 5 minutes), the query will be garbage collected**. | ||
|
|
||
| > The difference between using `prefetchQuery` and `updateQuery` is that `prefetchQuery` is async and will ensure that duplicate requests for this query are not created with `useQuery` instances for the same query are rendered while the data is fetching. |
Member
There was a problem hiding this comment.
It should actually say setQueryData instead of updateQuery. With that change, it would still be valid.
|
View your CI Pipeline Execution ↗ for commit 86ffd05
☁️ Nx Cloud last updated this comment at |
GEREGUR
pushed a commit
to GEREGUR/query
that referenced
this pull request
Feb 17, 2026
* chore: updates Orama to its latest version * chore: update orama searchbox to latest version * chore: fixes searchbox filters --------- Co-authored-by: Francesca Giannino <francesca.giannino86@gmail.com>
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Since updateQuery was removed in 1.0.0 these parts should be removed or rewritten.