3 ms·
You don’t re render a template. Only what you need to. If it’s a single div then so be it. Which is why it’s SPA-like experience with server side code
by theappsecguy 4y ago
You don’t re render a template. Only what you need to. If it’s a single div then so be it. Which is why it’s SPA-like experience with server side code
- robertoandred 4y agoAnd where does that new div come from? It's not a backend template?
- theappsecguy 4y agoIn my understanding template would be the entire page. So while an an individual div re-rendering is also technically a template, it's not really the same thing. It's a tiny re-render compared to a page refresh. Again, this is a different spin on doing things. Rails preaches abandoning the over-complexity of the client-side in the browser and pushing work to the server. I personally love it. I'm sure someone who is as fast in React as I am in Rails is laughing reading this.
- robertoandred 4y agoYou're going back in forth about whether the html re-render that's sent back over the wire is always the entire page or only the specific element needed.