Skip to content

Commit

Permalink
Minor improvements to introduction page
Browse files Browse the repository at this point in the history
  • Loading branch information
YuriyDurov committed Sep 9, 2024
1 parent 164fa17 commit d6c6328
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions docs/src/01.introduction.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,17 @@ Firstly, the server will prerender the page and send the prerendered version to

#### Step 2: Render

After the prerendered page is loaded, it will be rendered again. This time, the page will be rendered interactively - meaning that the user will be able to interact with the page after it is rendered. This step happens on the server if you are using the **InteractiveServer** render mode, or on the client (using [webassembly](https://webassembly.org/)) if you are using the **InteractiveWebAssembly** render mode.
After the prerendered page is loaded, it will be rendered again. This time, the page will be rendered interactively - meaning that the user will be able to interact with the page after it is rendered.

This step happens on the server if you are using the **InteractiveServer** render mode, or on the client (using [webassembly](https://webassembly.org/)) if you are using the **InteractiveWebAssembly** render mode.

#### The problem

The problem with all this is that the state of your components is lost between the prerender and the render steps. This means that if your page contains some **State**, it will be lost when the page is rendered for the second time - which implies initializing the page twice (which may include making WebAPI calls or other expensive operations).
The problem with all this is that the state of your components is lost between the prerender and the render.

This means that if your page contains some state, it will be lost when the page is rendered for the second time - which implies initializing the page twice (which may include making WebAPI calls or other expensive operations).

The **State** may refer to any kind of data your components posess, such as:
The **state** may refer to any kind of data your components posess, such as:
- Data fetched from a WebAPI
- Data that is expensive to compute
- etc.
Expand Down

0 comments on commit d6c6328

Please sign in to comment.