Skip to content

Commit

Permalink
[Content]: Fix misstyped parenthesis (#712)
Browse files Browse the repository at this point in the history
  • Loading branch information
simovicaleksa authored May 13, 2024
1 parent e401b1f commit d7419e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/routes/guides/fetching-data.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ Whenever the signal value, `userId`, changes, the internal fetch method `fetchUs
The properties of the `user` resource allow for conditional rendering based on the different states of the fetch process.

The `Switch/Match` construct provides one way to manage these conditions.
When the fetch succeeds and user data is retrieved, the `user(`) condition becomes active, and its related block executes.
When the fetch succeeds and user data is retrieved, the `user()` condition becomes active, and its related block executes.
However, if there's an error while fetching, the `user.error` block becomes `true`, leading to its corresponding `Match` block being shown.

In addition to the `error` property, the `loading` property offers a way to display a loading state to the user during the fetch operation.
Expand Down

0 comments on commit d7419e2

Please sign in to comment.