phoenix_live_view_example icon indicating copy to clipboard operation
phoenix_live_view_example copied to clipboard

redirect does not work

Open ghost opened this issue 6 years ago • 2 comments

Hi Chris,

regarding the user crud example:

When I want to add a new user and click on the "save" button,

  • the page gets freezing and the redirection to the "show" page doesn't take place
  • the "back" button doesn't work after that has happened too
  • the flash message does not flash.

The user has correctly inserted into database and there is no error message. Removing the phx-disable on submit doesn't solve the issue.

I got the same behaviour within an app of mine.

So, is there maybe an issue with redirecting in live view or another issue?

ghost avatar Jun 26 '19 13:06 ghost

It's a fixed LiveView issue.

I just made a PR to fix this example as well at #36.

Basically, you just need to remove the line of "phoenix_live_view" in mix.lock and fetch latest version of Phoenix LiveView, then problem should be resolved.

gyson avatar Jul 10 '19 03:07 gyson

mix deps.update phoenix_live_view is the simpler way to do that.

jeremyjh avatar Jul 14 '19 14:07 jeremyjh