Skip to content

Commit 9f6935f

Browse files
committed
fix sentence
1 parent 001840b commit 9f6935f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/routes/reference/basic-reactivity/create-resource.mdx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ interface ResourceOptions<T, S = unknown> {
9292
- **Type:** `ResourceSource<S>`
9393
- **Default:** `undefined`
9494

95-
Reactive data source whose value, when coerced to a boolean, determines whether the fetcher runs.
96-
If the value is truthy, it is passed as the first argument to the fetcher.
97-
If the value is falsy (including `undefined`, `null`, `false`, `0`, `""`, or `NaN`), the fetcher will not be called.
98-
Once the source changes to a truthy value, the fetcher automatically re-runs.
95+
Reactive data source evaluated before the fetcher runs.
96+
When the value is `undefined`, `null`, or `false`, the fetcher is not called.
97+
Otherwise the current value is passed as the first fetcher argument.
98+
Each change to a truthy value triggers the fetcher again.
9999

100100
### `fetcher`
101101

@@ -268,4 +268,4 @@ const [user] = createResource(() => fetchUser(), {
268268

269269
// user() is never undefined
270270
console.log(user().name); // "Loading..." initially
271-
```
271+
```

0 commit comments

Comments
 (0)