Can I have two instances of inercia js on one page? #796
-
Well you may think I'm crazy but it's a really common use case:
If I could somehow use it like this, I could get rid of the stupid web components. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
@Stevemoretz Inertia is more like an SPA. The main difference is the that there's no client-side routing. While multiple instances might be achievable somehow, there's no direct support for it. |
Beta Was this translation helpful? Give feedback.
-
@Stevemoretz Inertia always does a server round-trip. What it prevents is a full page reload. When you are using Laravel as a backend, the Livewire approach might be a better fit. Regarding the SSR, there's a already a preview available. Atm you need to sponsor Jonathan to access it. |
Beta Was this translation helpful? Give feedback.
@Stevemoretz Inertia always does a server round-trip. What it prevents is a full page reload. When you are using Laravel as a backend, the Livewire approach might be a better fit.
Regarding the SSR, there's a already a preview available. Atm you need to sponsor Jonathan to access it.