payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
23.12k stars 1.44k forks source link

Form state doesn't update after Locale change #7262

Closed GeorgeHulpoi closed 4 weeks ago

GeorgeHulpoi commented 1 month ago

Link to reproduction

https://github.com/GeorgeHulpoi/payload-locale-form-state

Payload Version

3.0.0-beta.70

Node Version

v20.9.0

Next.js Version

15.0.0-canary.58

Describe the Bug

In the case of using a localized field, being able to update the field only is not set doesn't update the form state when you change the locale. Only while refreshing, the form state will be correct.

Reproduction Steps

Adapters and Plugins

db-mongodb

paulpopus commented 1 month ago

Hey @GeorgeHulpoi your repro is missing the tests collection.

Also I have this PR to go out in our next beta release: https://github.com/payloadcms/payload/pull/7245

Does this fix the issue you're referring to?

paulpopus commented 1 month ago

I'll close the issue for now but let me know if beta.68 doesnt fix this for you

GeorgeHulpoi commented 1 month ago

@paulpopus I'm sorry for the reproduction issue, now the git is updated. It still persists on beta.70.

paulpopus commented 4 weeks ago

Fixing this in the next release

github-actions[bot] commented 1 day ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.