We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
createAsyncStore
1 parent 7b1597b commit 9b6a887Copy full SHA for 9b6a887
README.md
@@ -494,6 +494,14 @@ const user = createAsync((currentValue) => getUser(params.id))
494
495
Using `cache` in `createResource` directly won't work properly as the fetcher is not reactive and it won't invalidate properly.
496
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
505
### `action`
506
507
Actions are data mutations that can trigger invalidations and further routing. A list of prebuilt response helpers can be found below.
0 commit comments