You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
syncWithChildren for BridgeSelector and BridgeMultiSelector
New optional config field:syncWithChildren?: boolean added to BridgeSelectorConfig and BridgeMultiSelectorConfig (default false).
BridgeSelector: when enabled, the selector subscribes to onStateChange() of all child bridges. External activation of a child bridge switches selection to it (select()). External deactivation of the selected bridge deactivates the selector (deactivate()).
BridgeMultiSelector: when enabled, the selector subscribes to onStateChange() of all child bridges. External activation of a child bridge adds it to the selection (check()). External deactivation of a selected child bridge removes it from the selection (uncheck()).
Feedback loop prevention: an internal _syncing guard suppresses child state-change notifications while the selector is performing its own activate() / deactivate() / select() / check() / uncheck(), preventing recursive re-entry.
Cleanup:destroy() unsubscribes from all child state-change subscriptions before destroying owned bridges.
Backward-compatible:syncWithChildren defaults to false — existing code behaves exactly as before.