Skip to content

Commit

Permalink
Add explainer note to page state section.
Browse files Browse the repository at this point in the history
  • Loading branch information
hopsoft committed May 22, 2024
1 parent c224d2e commit 3f49417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -530,6 +530,10 @@ The code above will be expanded to this HTML.
</details>
```

If the user closes the details element and invokes a command or performs a request,
the server will pre-render the markup with the current page state preserving the `open` attribute value.
_The client also ensures that remembered attributes are restored after DOM mutations._

Several things happen when you use `turbo_boost[:remember]` to track page state.

1. The client builds the current page state before emitting requests to the server.
Expand Down

0 comments on commit 3f49417

Please sign in to comment.