Skip to content

Commit 832d4fb

Browse files
authored
docs: fix typo (quey -> query) (#4813)
1 parent e33bda3 commit 832d4fb

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

docs/react/guides/caching.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Let's assume we are using the default `cacheTime` of **5 minutes** and the defau
2727
- 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.
2828
- Both instances of the `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` query are unmounted and no longer in use.
2929
- 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**).
30-
- 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.
30+
- 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.
3131
- The final instance of `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` unmounts.
32-
- No more instances of `useQuery({ queyKey: ['todos'], queryFn: fetchTodos })` appear within **5 minutes**.
32+
- No more instances of `useQuery({ queryKey: ['todos'], queryFn: fetchTodos })` appear within **5 minutes**.
3333
- The cached data under the `['todos']` key is deleted and garbage collected.

docs/react/guides/placeholder-query-data.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ If the process for accessing a query's placeholder data is intensive or just not
4444
function Todos() {
4545
const placeholderData = useMemo(() => generateFakeTodos(), [])
4646
const result = useQuery({
47-
queyKey: ['todos'],
47+
queryKey: ['todos'],
4848
queryFn: () => fetch('/todos'),
4949
placeholderData,
5050
})

packages/vue-query/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,5 +79,5 @@ Visit https://tanstack.com/query/v4/docs/adapters/vue-query
7979
const id = ref(1);
8080
const enabled = ref(false);
8181

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

0 commit comments

Comments
 (0)