How sdushan/redux_saga_example works
This React Native Redux-Saga example fetches products and displays them. The screen dispatches a fetch request; a saga calls the products service and emits success or failure actions, and Redux state drives the product list, loading indicator, or error message. The graph separates UI, orchestration, and state. Some Redux middleware/action routing is runtime wiring rather than a direct source-level call, so those links are marked unverified; native debug tooling is excluded.
Main entry points: ProductsScreen.js Products screen · App.js Redux store · productsSagas.js Fetch watcher · rootSaga.js Root saga
Components 12
Product UI
- Products screen
src/screens/ProductsScreen.js
Request Flow
- App setup
src/App.js - Product actions
src/actions/products/index.js - Root saga
src/sagas/rootSaga.js - Fetch watcher
src/sagas/productsSagas.js - Fetch worker
src/sagas/productsSagas.js - Products service
src/services/productsServices.js
Redux State
- Redux store
src/App.js - Products reducer
src/reducers/productsReducer.js - Root reducer
src/reducers/index.js
Other components
- App user
- Product API
Connections 13
- App user → Products screen: views
src/screens/ProductsScreen.js - Products screen → Product actions: dispatches
src/screens/ProductsScreen.js - App setup → Redux store: creates
src/App.js - App setup → Products screen: provides store
src/App.js - App setup → Root saga: runs
src/App.js - Root saga → Fetch watcher: starts
src/sagas/rootSaga.js - Fetch watcher → Fetch worker: takes latest
src/sagas/productsSagas.js - Fetch worker → Products service: calls
src/sagas/productsSagas.js - Products service → Product API: requests
src/services/productsServices.js - Root reducer → Products reducer: combines
src/reducers/index.js - Products screen → Redux store: reads state
src/screens/ProductsScreen.js - Redux store → Root reducer: reduces actions
src/App.js - Fetch watcher → Redux store: dispatches results