@@ -154,7 +154,7 @@ Custom storage function for the resource value, useful for persistence or custom
154154
155155Callback fired when the resource hydrates on the client side.
156156
157- ## Return Value
157+ ## Return value
158158
159159- ** Type:** ` [Resource<T>, ResourceActions<T, R>] `
160160
@@ -195,7 +195,7 @@ type ResourceActions<T, R = unknown> = {
195195};
196196```
197197
198- - ` mutate ` : Function to Manually overwrite the resource value without calling the fetcher.
198+ - ` mutate ` : Function to manually overwrite the resource value without calling the fetcher.
199199 Allows you to optimistically update the resource value locally, without making a network request.
200200- ` refetch ` : Function to re-run the fetcher without changing the source.
201201 If a parameter is provided to ` refetch ` , it will be passed to the fetcher's ` refetching ` property.
@@ -216,7 +216,7 @@ console.log(data.loading); // true during fetch
216216console .log (data .state ); // "pending" → "ready"
217217```
218218
219- ### With Source
219+ ### With source
220220
221221``` typescript
222222const [userId, setUserId] = createSignal (1 );
@@ -230,7 +230,7 @@ const [user] = createResource(userId, async (id) => {
230230setUserId (2 );
231231```
232232
233- ### With Actions
233+ ### With actions
234234
235235``` typescript
236236const [posts, { refetch, mutate }] = createResource (fetchPosts );
@@ -257,7 +257,7 @@ const [data] = createResource(async () => {
257257< / ErrorBoundary >
258258```
259259
260- ### With Initial Value
260+ ### With initial value
261261
262262``` typescript
263263const [user] = createResource (() => fetchUser (), {
@@ -268,7 +268,7 @@ const [user] = createResource(() => fetchUser(), {
268268console .log (user ().name ); // "Loading..." initially
269269```
270270
271- ### Conditional Fetching
271+ ### Conditional fetching
272272
273273``` typescript
274274const [isEnabled, setIsEnabled] = createSignal (false );
0 commit comments