Gist contains example files for redux-saga user(GET) module. The structure of redux for included files in this gist:
redux
├── user # Module name
│ ├── __tests__ # Directory for redux module tests
│ │ ├── actions.test.js # Action tests
│ │ └── saga.test.js # Saga tests
│ ├── actions.js # Module actions (f/e.: fetchUserRequest, fetchUserSuccess)
│ ├── reducer.js # Module reducer
│ ├── saga.js # Module saga
│ └── types.js # Declared module constants (f/e.: FETCH_USER_REQUEST)
Example of redux with nested module
redux
├── user # Module name
│ ├── add # Sub-module name
│ │ ├── __tests__
│ │ │ ├── actions.test.js
│ │ │ └── saga.test.js
│ │ ├── actions.js
│ │ ├── reducer.js
│ │ ├── saga.js
│ │ └── types.js
│ └── delete
│ ├── __tests__
│ │ ├── actions.test.js
│ │ └── saga.test.js
│ ├── actions.js
│ ├── reducer.js
│ ├── saga.js
│ └── types.js
|
├── user-cats
│ ├── __tests__
│ │ ├── actions.test.js
│ │ └── saga.test.js
│ ├── actions.js
│ ├── reducer.js
│ ├── saga.js
│ └── types.js
|
├── root-reducer.js # Reducers from ALL modules are here
└── root-saga.js # Sagas from ALL modules are here
Is a good pattern use toast's inside a saga?