From 7c882075501dab3ed5705e9240d1074202290620 Mon Sep 17 00:00:00 2001 From: Raul Calvo <83084121+raul-repos@users.noreply.github.com> Date: Thu, 19 Jan 2023 13:12:09 +0100 Subject: [PATCH] Fixed typos --- content/guides/foundations/solid-primitives.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/content/guides/foundations/solid-primitives.mdx b/content/guides/foundations/solid-primitives.mdx index 87a3e6a78a..343f3e000b 100644 --- a/content/guides/foundations/solid-primitives.mdx +++ b/content/guides/foundations/solid-primitives.mdx @@ -198,11 +198,11 @@ function User({ id }) { } ``` -`createResource` returns some pretty cool stuff that you can use to display the state of the resource reactively, as you can see it has a `loading` property that is a boolean that is true when the resource is loading and false when it is not. It also has an `error` property that is an error object if there was an error while fetching the resource. `createResource` also has some options we can make use of to customize the behaviour here's a list of them and a short description on what they do. +`createResource` returns some pretty cool stuff that you can use to display the state of the resource reactively, as you can see it has a `loading` property that is a boolean that is true when the resource is loading and false when it is not. It also has an `error` property that is an error object if there was an error while fetching the resource. `createResource` also has some options we can make use of to customize the behaviour. Here's a list of them and a short description on what they do. - `initialValue` : The initial value of the resource. This is useful if you want to display something while the resource is loading. - `name` : The name of the resource. This is useful for debugging. -- `deferStream` : A boolean that determines whether you app should wait for the resource to finish before rendering to a stream. Note that this is only useful if you're making use of the `renderToStream` function. +- `deferStream` : A boolean that determines whether your app should wait for the resource to finish before rendering to a stream. Note that this is only useful if you're making use of the `renderToStream` function. - `ssrLoadFrom` : This can be used to tell the resource if it should load it's initial data from the `initialValue` or from the server. This is useful if you have some server-side data that you would like to assign to this resource. This can be used by passing either `'initial'` or `'server'` to this option. - `storage` : This option serves as an declarative way for you to store the resource's data. This is useful if you would like to store the data in a cache or something like that. This option takes a function that returns a tuple with two functions, an Accessor and a Setter of types any. Here's an example of how you can use this option. @@ -252,4 +252,4 @@ This is just a simple way in which you can make use of more than one signal valu \ No newline at end of file +