Key Insight: Using a Set for listeners prevents duplicate subscriptions and makes unsubscribe O(1). The @@INIT dispatch initializes the reducer's default state.
Practice this in a timed sprint →
5 free questions, no signup required