Skip to content

Commit 0eff6f4

Browse files
committed
update
1 parent a1cad3c commit 0eff6f4

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

src/routes/solid-router/reference/data-apis/create-async-store.mdx

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22
title: createAsyncStore
33
---
44

5-
`createAsyncStore`, similar to [createAsync](/solid-router/reference/data-apis/create-async), is designed to simplify asynchronous data fetching.
6-
The main difference with `createAsync` is that `createAsyncStore` uses a [**store**](/concepts/stores).
5+
The `createAsyncStore` primitive manages asynchronous data fetching by tracking the result of a promise-returning function in a [store](/concepts/stores).
76

8-
When new data arrives, `createAsyncStore` [reconciles](/reference/store-utilities/reconcile) it with the old data.
9-
This means it intelligently updates the store, only changing the fields that are different and preserving the state of unchanged fields.
7+
The main difference from [createAsync](/solid-router/reference/data-apis/create-async) is its use of reconciliation: when new data arrives, it intelligently merges with the existing store, updating only changed fields while preserving unchanged state.
108

119
## Import
1210

0 commit comments

Comments
 (0)