Skip to content

Commit 9b6a887

Browse files
committed
add createAsyncStore to README
1 parent 7b1597b commit 9b6a887

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -494,6 +494,14 @@ const user = createAsync((currentValue) => getUser(params.id))
494494

495495
Using `cache` in `createResource` directly won't work properly as the fetcher is not reactive and it won't invalidate properly.
496496

497+
### `createAsyncStore`
498+
499+
Similar to `createAsync` except it uses a deeply reactive store. Perfect for applying fine-grained changes to large model data that updates.
500+
501+
```jsx
502+
const todos = createAsyncStore(() => getTodos());
503+
```
504+
497505
### `action`
498506

499507
Actions are data mutations that can trigger invalidations and further routing. A list of prebuilt response helpers can be found below.

0 commit comments

Comments
 (0)