3 ms·
In simple terms, what does Hotwire mean / provide?
by anakaine 4y ago
In simple terms, what does Hotwire mean / provide?
- cutler 4y agoHotwire allows you to handle front-end page/view updates and state from the server instead of relying on an SPA framework. Rails sends the minimal amount of JS to update the page without a full reload and for many use cases it's all you need. When you click a link configured with Hotwire turbolinks intercepts the call, fetches the new content from Rails and strips out everything except the body tag and its contents then uses that, with a sprinkling of JS, to update the page/view.
- anakaine 4y agoThat's sounds pretty good, actually.