Have anyone succeeded with Phoenix Live and Pjax (or other similar tool)? My point is that not all pages in my application require LiveView, but I would like it to not fully reload on each page change.
I think they should work together just fine. What have you tried?
Ok, found it. I needed to disconnect while unloading and reconnect after load of the new page.
I just started to migrate from Drab to pjax + LiveView. But currently LiveView is better suited for some use cases; updating a partial of pages interactively.
LiveView as a pjax isn’t ready since pushState is not supported. Turbolinks is actually more mature than LiveView in this area. Mobile support is as well. But in the long run I certain that the LiveView will replace the Turbolinks.
I do not think that LiveView is at all meant to replace Pjax/Turbolinks. LiveView is (IMHO) meant to be “single page updater” not tool to handle multi page updates and content. And in that form I think that having both of these technologies to cooperate is quite easy and painless, so I do not see the problem with using both of them at the same time to handle everything.
So LiveView has no ambition to support SPA ?
I have no idea, but form what I understand it isn’t meant to be „full fledged SPA framework” but rather mechanism for supporting „live view” components on the website.
There have been two proposals so far, and the up to date one is here:
This response is based on information given by @chrismccord 's talk at ElixirConf.eu:
- On the other hand,
pushState-support is definitely something that will be added. Amongst other things because reflecting the state changes in the URL so that it can be bookmarked or shared is quite a common use case.