Replies: 3 comments 2 replies
-
Beta Was this translation helpful? Give feedback.
-
@kejedi thanks for bringing that up as I was in the process of assessing inertia as an option for our application V2 efforts. My first thought was "how aligned is inertia to React 19 and SSR in general". I guess you have answered my question; it sounds like there is significant effort going forward. This is a shame though given the other options I am assessing such as Remix, Next.js, etc are potentially more aligned to the future of React on the client side but they don't really deliver the great Rails or Laravel experience on the backend which is very much something we want. FYI - I have also found this video where Taylor (creator of Laravel) acknowledges inertia isn't a finished product yet and they are aware of the current challenges around maintenance: https://www.youtube.com/watch?v=NC6h1Oaz1rM&t=2085s |
Beta Was this translation helpful? Give feedback.
-
I looked into this for a few days, and a conclusion I had was using something like https://vike.dev/architecture could work nicely as an adapter. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Version:
@inertiajs/react
version: allDescribe the problem:
Inertia still uses the renderToString method rather than renderToReadableStream
This means that a number of react features are unavailable. Other front end libraries also have streaming options for rendering.
If you used the latter method, you could also have your layout file in jsx rather than php. Meaning all your front end code would be in the same language
Another major issue - inertia also places props inside html elements which makes the performance disgusting if your page contains a lot of data.
Again, if you were using renderToReadableStream, you could use the bootstrapModules and bootstrapScriptContent methods to inject the prop data as a proper script tag
I realize this would cause breaking changes and would probably require a major version update. If you are interested in resolving these problems then I am willing to submit a PR
If this is just going to be closed as a "feature request" I will not waste my time
Steps to reproduce:
Install inertia
Beta Was this translation helpful? Give feedback.
All reactions