Skip to content

Commit

Permalink
Wordsmith "asynchronous" verbiage
Browse files Browse the repository at this point in the history
  • Loading branch information
bignimbus committed Nov 15, 2022
1 parent 91c2501 commit 6845f31
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ You can use `read` functions to perform any sort of logic you want, including:
### Reads are synchronous by design

Many UI frameworks like React (when not using `Suspense`) have synchronous rendering pipelines so it's important for UI components to have immediate access to any existing data. So all `read` functions are synchronous, as are the cache's `readQuery` and `readFragment` methods. It is possible, however, to leverage reactive variables and `options.storage` to roll your own asynchronous `read` function:
Many UI frameworks like React (when not using `Suspense`) have synchronous rendering pipelines, therefore it's important for UI components to have immediate access to any existing data. This is why all `read` functions are synchronous, as are the cache's `readQuery` and `readFragment` methods. It is possible, however, to leverage reactive variables and `options.storage` to compose a `read` function that behaves in a manner that resembles an asynchronous action:

<ExpansionPanel title="See example">

Expand Down

0 comments on commit 6845f31

Please sign in to comment.