4 ms·
That sounds awesome, but how could you do it without either: - Client sends the entirety of what it has to the server so the server can do the diff - Serve
by Untit1ed 9y ago
That sounds awesome, but how could you do it without either:
- Client sends the entirety of what it has to the server so the server can do the diff
- Server sends the entirety of the new page to the client so it can do the diff
- Server is constantly keeping track of the last thing that the user looked at so it can send the diff for the next page
?
- gcoda 9y agoAssuming: 1. Everything user sees is from server 2. Templates/Views is function of state Server can generate UI with baked changes to state. URL parameters. Generate html from received state by calling render function of clicked component and send just that components html. If we had http header for that we can leverage http2 push and replace even components which state were changed as side effect. React-Redux, Elm, Vuex doing this already. Just bake actions to urls and keep store on server.