from Hacker News

Inertia.js: New pattern to create server-driven single-page apps

by kekub on 4/22/19, 2:11 AM with 7 comments

  • by sansnomme on 4/22/19, 5:17 AM

    Here's a not incomprehensive list of similar implementations of this idea: Phoenix Drab/LiveView/Texas, Razor Components, Plotly's Dash, Intercoolerjs/Unpoly (provides view layer only without websockets), Rails StimulusReflex, Ruby Fie, Python Sofi, Python Remi, Node.js Purview, Python Flexx, Python Reahl (AGPL licensed), Python Wdom.

    I am sure I missed quite a few. Feel free to comment down below with any other library.

  • by owens99 on 4/22/19, 8:44 AM

    Nice work! This is close to what I do with most new Rails app when I want more Asynchronous functionality.
  • by zubairq on 4/22/19, 9:26 AM

    This is a very good way of loading components dynamically, and the approach is pretty sound. We use the same technique at yazz.com to dynamically load components with Vue.js:

        <component v-bind:is="page.component"></component>
  • by Epskampie on 4/22/19, 7:57 AM

    Quite a nice explanation of the pattern, I might try this setup.

    No real need for the author to make another js lib out of it, but hey, doesn’t hurt.

  • by TomMarius on 4/22/19, 11:46 AM

    Yeah this is a good way, I use that since around TypeScript and react really started working together, it's a bliss