using filterOptions on relationship field can cause infinite loop
Link to reproduction
No response
Describe the Bug
When adding filterOptions to a polymorphic relationship field, we're experiencing infinite loops in the frontend when doing any interaction with the content (ie. doesn't matter if we type characters inside a richtext field or anything else, as soon as content is updated the application enters an infinite loop).
To Reproduce
- Create a relationship field with multiple collections
- Add filterOptions callback to the field on certain collections
- Try to edit a document
- The frontend UI will enter an infinite loop
Payload Version
2.9.0
Adapters and Plugins
db-mongodb, bundler-webpack, richtext-slate
I'm currently experiencing this issue. Payload v. 2.20.0
This issue was automatically closed due to lack of activity. If this issue is still relevant against the latest codebase, please create a new issue.
This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.