Hey @djantea ,
thank you for reading my book
I must admit that it took me a good hour to find the problem here: If you push an event from the server to the client using push_event/3
, then you don’t have to prefix the event name with phx:
because LiveView does so automatically.
So, in your case, the client would receive the event phx:phx:page-loading-stop
which doesn’t stop the loading bar. If you remove the phx:
from your push_event/3
-call, it should work
Let me know if this fixed your problem