-
Notifications
You must be signed in to change notification settings - Fork 2.8k
Open
Labels
status: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet
Description
Describe the Bug
- When opening a collection item from the items list, changing a field, and pressing the back button of the browser, the value in the list shows the old value
- When changing a field, navigating to another page and pressing the back button of the browser, the field shows the old value
While the first case is only annoying, the second case can easily lead to data loss by overwriting your updates with stale data.
Link to the code that reproduces this issue
https://github.com/janisvb/payload-reproduction
Reproduction Steps
pnpm dev _community
- Navigate to http://localhost:3000/admin/collections/posts
- Open "example post"
- Change example post to new post and save
- Press back button of browser. List still shows example post as title
- Press forward button of browser. Title field shows example post instead of new post
Which area(s) are affected? (Select all that apply)
area: ui
Environment Info
payload: 3.50.0
next: 15.4.4
react: 19.1.0
Metadata
Metadata
Assignees
Labels
status: needs-triagePossible bug which hasn't been reproduced yetPossible bug which hasn't been reproduced yet