F
Filament4mo ago
BenRay

Downsides of SPA mode

Are there any downsides to using SPA mode? It does make things noticeably more snappy. I assume there are since it isn’t on my default.
4 Replies
awcodes
awcodes4mo ago
SPA mode in livewire is buggy at best. My personal opinion, for what it’s worth, if you actually need an SPA, then it’s best to actually build one.
BenRay
BenRayOP4mo ago
Ah I see. Do you know what kind of bugs in particular I should look for if I do use this feature?
awcodes
awcodes4mo ago
There’s just a lot of edge cases where you’re expecting livewire to update, etc that never happens because it doesn’t fully tap into the lifecycle. Basically, all spa mode does is prefetch a request, not filament specific, but livewire specific. And prefetch doesn’t have any context aware application.
BenRay
BenRayOP4mo ago
Gotcha! Thanks very much for the response 😊

Did you find this page helpful?