App-like feeling

Hello, I have only used Laravel so far to build APIs. Now I was recommended Filament and after watching a few videos I am very excited about the simplicity with which Filament makes it possible to build panels. Unfortunately, I noticed in the demo.filamentphp.com that there is always a page reload when I switch between the individual panels. So the panel just doesn't feel app-like and wouldn't be an option for my purposes. Hence my question whether this behavior can be changed? I know Livewire and Inertia from the Laravel cosmos, but have never used them and have no idea whether and to what extent they work together with Filament. Thank you and best regards Kolja
3 Replies
awcodes
awcodes9mo ago
There is an ->spa() modifier you can use to trigger livewire’s spa mode but fair warning it’s buggy at the livewire level. https://filamentphp.com/docs/3.x/panels/configuration#spa-mode
Lasar Kolja
Lasar KoljaOP9mo ago
Thank @awcodes for the hint. I looked at the github issues and there are some open bugs, but i wonder, that the spa-mode is so unpopular?
awcodes
awcodes9mo ago
It’s just not fully ironed out at the livewire level. Personally I like where Caleb’s head is at with it, but I think it’s going to be hard to get it to a true spa like Vue or react. I also think that if you need a spa you should make a spa. If the page reloads in the same amount of time as a an api request and a dom dif then does it matter? But in filament and livewire the page reload only happens when navigating to a different url. Page interactions themselves don’t require a full page reload.
Want results from more Discord servers?
Add your server