The best way to build a modern backend + admin UI. No black magic, all TypeScript, and fully open-source, Payload is both an app framework and a headless CMS.
Before, options from props were being stored in state and would not update when props changed. Now options are memoized and will update when the incoming options prop changes.
[x] I have read and understand the CONTRIBUTING.md document in this repository.
Type of change
[x] Bug fix (non-breaking change which fixes an issue)
Checklist:
[x] I have added tests that prove my fix is effective or that my feature works
[ ] Existing test suite passes locally with my changes
[ ] I have made corresponding changes to the documentation
Description
Fixes https://github.com/payloadcms/payload/issues/6869
Before, options from props were being stored in state and would not update when props changed. Now options are memoized and will update when the incoming
options
prop changes.Type of change
Checklist: