Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

redirect does not work #31

Open
ghost opened this issue Jun 26, 2019 · 2 comments
Open

redirect does not work #31

ghost opened this issue Jun 26, 2019 · 2 comments

Comments

@ghost
Copy link

ghost commented Jun 26, 2019

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?

gyson added a commit to gyson/phoenix_live_view_example that referenced this issue Jul 10, 2019
@gyson
Copy link

gyson commented Jul 10, 2019

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.

@jeremyjh
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants