payloadcms / payload

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.
https://payloadcms.com
MIT License
21.04k stars 1.27k forks source link

fix: update select options when the options prop changes #6878

Closed JarrodMFlesch closed 1 week ago

JarrodMFlesch commented 1 week ago

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: