Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: fix typo (quey -> query) #4813

Merged
merged 1 commit into from Jan 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions docs/react/guides/caching.md
Expand Up @@ -27,7 +27,7 @@ Let's assume we are using the default `cacheTime` of **5 minutes** and the defau
- When the request completes successfully, the cache's data under the `['todos']` key is updated with the new data, and both instances are updated with the new data.
- Both instances of the `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` query are unmounted and no longer in use.
- Since there are no more active instances of this query, a cache timeout is set using `cacheTime` to delete and garbage collect the query (defaults to **5 minutes**).
- Before the cache timeout has completed, another instance of `useQuery({ queryKey: ['todos'], queyFn: fetchTodos })` mounts. The query immediately returns the available cached data while the `fetchTodos` function is being run in the background. When it completes successfully, it will populate the cache with fresh data.
- Before the cache timeout has completed, another instance of `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` mounts. The query immediately returns the available cached data while the `fetchTodos` function is being run in the background. When it completes successfully, it will populate the cache with fresh data.
- The final instance of `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` unmounts.
- No more instances of `useQuery({ queyKey: ['todos'], queryFn: fetchTodos })` appear within **5 minutes**.
- No more instances of `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` appear within **5 minutes**.
- The cached data under the `['todos']` key is deleted and garbage collected.
2 changes: 1 addition & 1 deletion docs/react/guides/placeholder-query-data.md
Expand Up @@ -44,7 +44,7 @@ If the process for accessing a query's placeholder data is intensive or just not
function Todos() {
const placeholderData = useMemo(() => generateFakeTodos(), [])
const result = useQuery({
queyKey: ['todos'],
queryKey: ['todos'],
queryFn: () => fetch('/todos'),
placeholderData,
})
Expand Down
2 changes: 1 addition & 1 deletion packages/vue-query/README.md
Expand Up @@ -79,5 +79,5 @@ Visit https://tanstack.com/query/v4/docs/adapters/vue-query
const id = ref(1);
const enabled = ref(false);

const query = useQuery({ queyKey: ["todos", id], queryFn: () => getTodos(id), enabled });
const query = useQuery({ queryKey: ["todos", id], queryFn: () => getTodos(id), enabled });
```