Skip to content

fix(ui): stop select filter infinite loop when leaving in/not_in#17291

Open
thribhuvan003 wants to merge 1 commit into
payloadcms:mainfrom
thribhuvan003:fix/wherebuilder-select-multi-single-loop
Open

fix(ui): stop select filter infinite loop when leaving in/not_in#17291
thribhuvan003 wants to merge 1 commit into
payloadcms:mainfrom
thribhuvan003:fix/wherebuilder-select-multi-single-loop

Conversation

@thribhuvan003

@thribhuvan003 thribhuvan003 commented Jul 11, 2026

Copy link
Copy Markdown

fixes #17248

noticed the select list filter could blow up with max update depth after switching from in / not_in back to something like equals. value was still an array and the effect kept calling onChange.

coerce for display, write the scalar once, and don't write again for the same value. unit tests for the unwrap + the loop guard.

switching off in/not_in could leave an array value; the select effect kept
calling onChange and hit max update depth. coerce for display and only write
the scalar once.
@thribhuvan003 thribhuvan003 force-pushed the fix/wherebuilder-select-multi-single-loop branch from b102ebb to 55beb3e Compare July 11, 2026 14:36
@thribhuvan003 thribhuvan003 changed the title fix(ui): stop WhereBuilder select filter looping on multi-to-single operators fix(ui): fix select filter infinite loop when leaving in/not_in Jul 11, 2026
@thribhuvan003 thribhuvan003 changed the title fix(ui): fix select filter infinite loop when leaving in/not_in fix(ui): stop select filter infinite loop when leaving in/not_in Jul 11, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

1 participant