KamoCRM

Prevent infinite re-render loop in MeetingDialog caused by default prop array references

Fixkamo-internal
Shipped
29 மார்ச், 2026 அன்று 12:53 AM UTC
Author
kamo
Commit
daca6db

The useEffect had preSelectedMembers (defaulting to []) as a dependency, creating a new array on every render and triggering an infinite setState loop. Fixed by using a ref to track open state transitions, removing unstable deps, and moving the refresh button outside the TextField slotProps to avoid re-render triggers.

All changes

Like what you see shipping?

All of it arrives in your workspace on its own. Start on the free plan and read this page again in a month.

Start Free ForeverView Pricing