Skip to content

Commit

Permalink
Edited docs of store.fetch method (#1233)
Browse files Browse the repository at this point in the history
  • Loading branch information
LazerJesus authored Dec 3, 2023
1 parent 2652f4b commit b7d5241
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion site/src/routes/api/query/+page.svx
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ A query store holds an object with the following fields that accessed like `$sto
### Methods

A query store has the following methods that invoked without the $, ie `store.fetch(...)`:

- `fetch` expects `store.fetch({ variables: {/* variables */} });`
- `fetch` is a function that can be used to load the most recent data from your API (subject to its [Cache Policy](/guides/caching-data)). If you want to force the request to always resolve against the API, set `policy: 'NetworkOnly'`.

## Automatic Loading
Expand Down

0 comments on commit b7d5241

Please sign in to comment.