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

Rerender the current route on every navigation #680

Merged
merged 1 commit into from
Jan 23, 2023

Conversation

JulianKniephoff
Copy link
Member

@JulianKniephoff JulianKniephoff commented Jan 19, 2023

Due to how React works, this previously only happened when you actually visited a new route. Visiting the same route would not rerender and thus also not reset any state.

This is unexpected for example when you click
the "upload video" button in the users menu while already uploading something.

Closes #681.

Due to how React works, this previously only happened when you
actually visited a new route. Visiting the same route would **not**
rerender and thus also not reset any state.

This is unexpected for example when you click
the "upload video" button in the users menu while already
uploading something.
@JulianKniephoff JulianKniephoff marked this pull request as ready for review January 20, 2023 10:39
@LukasKalbertodt LukasKalbertodt merged commit fd343dc into elan-ev:master Jan 23, 2023
JulianKniephoff added a commit to JulianKniephoff/tobira that referenced this pull request Jan 30, 2023
With elan-ev#680 merged, there now is a more elegant way to reset the state
of the uploader; we can just send the user to the route again!
@JulianKniephoff JulianKniephoff deleted the rerender-routes branch January 30, 2023 18:15
owi92 added a commit that referenced this pull request Jan 30, 2023
With #680 merged, there now is a more elegant way to reset the state of
the uploader; we can just send the user to the route again!
@LukasKalbertodt LukasKalbertodt added the changelog:user User facing changes label Jan 31, 2023
@owi92 owi92 mentioned this pull request Mar 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
changelog:user User facing changes
Projects
None yet
Development

Successfully merging this pull request may close these issues.

If a user is on the /~upload page and navigates there again, that should probably reset the page
2 participants