Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/reference/QueryCache.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const queryCache = new QueryCache({
},
})

const query = queryCache.find(['posts'])
const query = queryCache.find({ queryKey: ['posts'] })
```

Its available methods are:
Expand Down Expand Up @@ -52,7 +52,7 @@ Its available methods are:
> Note: This is not typically needed for most applications, but can come in handy when needing more information about a query in rare scenarios (eg. Looking at the query.state.dataUpdatedAt timestamp to decide whether a query is fresh enough to be used as an initial value)

```tsx
const query = queryCache.find(queryKey)
const query = queryCache.find({ queryKey })
```

**Options**
Expand All @@ -71,7 +71,7 @@ const query = queryCache.find(queryKey)
> Note: This is not typically needed for most applications, but can come in handy when needing more information about a query in rare scenarios

```tsx
const queries = queryCache.findAll(queryKey)
const queries = queryCache.findAll({ queryKey })
```

**Options**
Expand Down
Loading