Turn on JavaScript
Pritish Vaidya

How to monitor network changes using Redux Saga in React Native


What is an Event Channel? Redux Saga consists of eventChannels to communicate between external events and sagas as a factory function. The events are from the event sources other than the redux store . Here’s a basic example from the docs : Things to note: The first argument of the eventChannel is a listener function. The return method is the unregister listener function. Emitter initializes the listener once _after which all the events from the listener are _passed to the emitter function by invoking it. How should I hook up Redux Saga’s Event Channel with React Native’s Network…

Show more