Closed bilogic closed 2 years ago
That's up to the application developers. You can listen for the Turbo events and decide what happens when a turbo:submit-end
fails or not.
In my demo app, I needed to add the CSRF token to the Turbo requests (source), that I think I can pull into the package setup.
There might be instances where a turbo POST to the server returns 419 due to various reasons, e.g. expired token etc.
Turbo just replaces the frame with a empty HTML. I think it would be more correct to refresh the page as a whole.