Skip to content

Commit dd580f9

Browse files
Fix createResource state for errored (typo) (#1133)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent fb8bc3c commit dd580f9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

+2-2
Original file line numberDiff line numberDiff line change
@@ -94,15 +94,15 @@ const [user] = createResource(() => params.id, fetchUser, {
9494
#### v1.5.0
9595

9696
1. We've added a new state field which covers a more detailed view of the Resource state beyond `loading` and `error`.
97-
You can now check whether a Resource is `unresolved`, `pending`, `ready`, `refreshing`, or `error`.
97+
You can now check whether a Resource is `unresolved`, `pending`, `ready`, `refreshing`, or `errored`.
9898

9999
| State | Value resolved | Loading | Has error |
100100
| ------------ | -------------- | ------- | --------- |
101101
| `unresolved` | No | No | No |
102102
| `pending` | No | Yes | No |
103103
| `ready` | Yes | No | No |
104104
| `refreshing` | Yes | Yes | No |
105-
| `error` | No | No | Yes |
105+
| `errored` | No | No | Yes |
106106

107107
2. When server-rendering resources, especially when embedding Solid in other systems that fetch data before rendering, you might want to initialize the resource with this prefetched value instead of fetching again and having the resource serialize it in its own state.
108108
You can use the new `ssrLoadFrom` option for this.

0 commit comments

Comments
 (0)