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

Pagination and browser history issue #1559

Closed
timrspratt opened this issue Sep 12, 2020 · 3 comments
Closed

Pagination and browser history issue #1559

timrspratt opened this issue Sep 12, 2020 · 3 comments

Comments

@timrspratt
Copy link
Contributor

Description

When navigating through pages from a paginated data set, then refreshing the page, and then using the browser history (back button) to return to the previous page, the component isn't updated.

Steps to reproduce

Navigate through pages, click refresh, use the browser back button. The component data doesn't update.

Screen Recording 2020-09-12 at 10 05 28

Context

  • Livewire version: 2.2.1
  • Laravel version: 8.1.0
  • Browser: Chrome 85
@GertjanRoke
Copy link
Contributor

GertjanRoke commented Sep 12, 2020

If you change it in the url by hand and press enter it works?

@TheArKaID
Copy link

TheArKaID commented Sep 12, 2020

If you change it in the url by hand and press enter it works?

Mine is fail in the second page,
image

But after go back to the first page, it works, for all history pages
image

image

And....uh, when I refresh it again in the second page, it fails again, not showing the data of the first page.

@calebporzio
Copy link
Collaborator

This should be fixed in Livewire v2.2.2

I spent the weekend working on the .pushState functionality in Livewire with this bug driving the work. I think it should be resolved, but I'm eager to know.

Closing this for now, please still comment here though. Thanks!

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

4 participants