[HN Gopher] Inertia.js - Build React, Vue, or Svelte apps with s...
       ___________________________________________________________________
        
       Inertia.js - Build React, Vue, or Svelte apps with server-side
       routing
        
       Author : rob
       Score  : 63 points
       Date   : 2024-09-06 13:15 UTC (9 hours ago)
        
 (HTM) web link (inertiajs.com)
 (TXT) w3m dump (inertiajs.com)
        
       | begueradj wrote:
       | My experience with using Inertia.js for Laravel has always been
       | smooth and pleasant.
       | 
       | But I can't say the same with translations/localisation.
        
       | calexanderaz wrote:
       | Inertia is pretty interesting! Recently, Elixir / Phoenix started
       | supporting it:
       | 
       | https://youtu.be/uyfyFRvng3c
        
       | rmsaksida wrote:
       | How good is the Rails integration? I know Inertia is very popular
       | in the Laravel community, but I rarely see it being mentioned
       | among rubyists.
        
         | efields wrote:
         | The React example is 2 years old but doesn't look that
         | different than what I would do today:
         | https://github.com/BrandonShar/inertia-rails-template
         | 
         | The rails adapter is up to date, sponsored:
         | https://github.com/inertiajs/inertia-rails?tab=readme-ov-fil...
        
       | banashark wrote:
       | Adonis has great support for inertia builtin. Very quick to get
       | started. https://docs.adonisjs.com/guides/getting-
       | started/installatio...
       | 
       | Docs here: https://docs.adonisjs.com/guides/views-and-
       | templates/inertia
       | 
       | Using inertia with SSR is very nice for the combination of:
       | 
       | * I want to have simple server-rendered views, with added client
       | side sprinkling
       | 
       | * I want to be able to use off-the-shelf components like complex
       | data grids to build fast
       | 
       | * I want to minimize API communication headaches
        
       | lessname wrote:
       | I really like the server side routing part of Inertia and that
       | you can pass data to the frontend directly in the first request
       | without needing to do an additional http request (altough this
       | might be a bit problematic for sensitive information in case the
       | sites are cached).
       | 
       | However, there are also things that make it feel gimmicky:
       | 
       | - The resolve function createInertiaApp runs more than once
       | (mainly) on the first page load causing a re-render and it seems
       | like there is no plan to fix that in near feature
       | https://github.com/inertiajs/inertia/issues/1595 /
       | https://github.com/inertiajs/inertia/issues/1091
       | 
       | - There are issues like this where they could at least merge the
       | PR to improve the documentation as there seem to be many people
       | to misunderstand the usage the function but it did not happen
       | https://github.com/inertiajs/inertia/issues/1631
        
       | miohtama wrote:
       | Is there any functionality that is not offered by SvelteKit?
       | SvelteKit is batteries including SSR/web server solution for
       | Svelte and works beautifully together, as they are tightly
       | coupled.
        
         | izietto wrote:
         | Yes, It works with any backend
        
       | losthobbies wrote:
       | There is a really good adocast channel on YouTube going over this
       | and it's integration with Adonisjs
       | 
       | https://youtube.com/playlist?list=PL9dIWiKCV571S3ILiADMKlZS4...
        
       ___________________________________________________________________
       (page generated 2024-09-06 23:00 UTC)