Skip to content

[Live Components] is writeable:false realy safe? #2249

Discussion options

You must be logged in to vote

A "quick" response that simplifies many aspects but could still be useful for others. 🙂

How Does This Work?

1. User Visits → First Render

A user navigates to a page like /foo/bar using a browser that includes a LiveComponent, such as a “Captcha.”
The PHP code renders a complete HTML page containing the LiveComponent during the first render. This includes HTML tags with the component’s props (the “state”), serialized with a checksum.

2. Server Response → Browser

When the browser receives the page, the LiveComponent JavaScript extracts the props from the HTML and updates any necessary values (though typically not needed during the first render). It also retains a copy of the state returned …

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by tito10047
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants