Skip to content

updateQuery - #211

Closed
denisborovikov wants to merge 1 commit into
TanStack:masterfrom
denisborovikov:patch-1
Closed

updateQuery#211
denisborovikov wants to merge 1 commit into
TanStack:masterfrom
denisborovikov:patch-1

Conversation

@denisborovikov

Copy link
Copy Markdown
Contributor

Since updateQuery was removed in 1.0.0 these parts should be removed or rewritten.

Since updateQuery was removed in 1.0.0 these parts should be removed or rewritten.
Comment thread README.md
- 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.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should actually say setQueryData instead of updateQuery. With that change, it would still be valid.

@denisborovikov
denisborovikov deleted the patch-1 branch March 6, 2020 19:53
@nx-cloud

nx-cloud Bot commented Aug 28, 2024

Copy link
Copy Markdown

View your CI Pipeline Execution ↗ for commit 86ffd05

Command Status Duration Result
nx affected --targets=test:sherif,test:knip,tes... ✅ Succeeded <1s View ↗
nx run-many --target=build --exclude=examples/*... ✅ Succeeded 1s View ↗

☁️ Nx Cloud last updated this comment at 2026-04-14 15:58:26 UTC

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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants