4 ms·
Clicking sends a websocket message to the backend. Which then responds with a state update message which updates the frontend react components. rhe round trip
by tymonPartyLate 3y ago
Clicking sends a websocket message to the backend. Which then responds with a state update message which updates the frontend react components.
rhe round trip would probably take the same time with rest APIs, but you would have the ability to add some loading indicators or hints, because you'd have full control over client side rendering. You don't have that when using pynecone. It's a tradeof
- thunky 3y agoAh thanks, I see that now under the State -> Overview docs page: All user state is stored on the server. Behind the scenes, events are sent as API calls to update the state on the server. The state delta is then sent to the frontend, which updates the UI to reflect the new state.
- slmjkdbtl 3y agoSo it doesn't really have any client side interactivity? Thought it does from the example and wondering what magic they pulled to achieve that, they really should write this in big text up front cuz it's a pretty big factor when considering this software.