Change theme
Help
Press space for more information.
Show links for this issue (Shortcut: i, l)
Copy issue ID
Previous Issue (Shortcut: k)
Next Issue (Shortcut: j)
Sign in to use full features.
Vote: I am impacted
Notification menu
Refresh (Shortcut: Shift+r)
Go home (Shortcut: u)
Pending code changes (auto-populated)
View issue level access limits(Press Alt + Right arrow for more information)
Maintenance work
View staffing
Description
When a new CombinedLoadStates to emitted to MutableCombinedLoadStateCollection._stateFlow, it also invokes listeners with the new state.
However we need to manually de-duplicate the new state before invoking listeners when we would rather rely on the StateFlow's built-in de-dupe. We should look into using the StateFlow as the listener's source of truth.
One option is to subscribe to StateFlow internally when first listener is registered, and cancelling this subscription when last listener is unregistered.