Commits (2)
......@@ -48,7 +48,6 @@
"@testing-library/react": "^11.1.0",
"@testing-library/user-event": "^12.1.10",
"fetch-mock": "^9.11.0",
"react-test-renderer": "^17.0.1",
"redux-logger": "^3.0.6"
"react-test-renderer": "^17.0.1"
}
}
# Organization of reducers
LLNG state contains these namespaces _(initialized using `connectRouter()`) from [connected-react-router](https://www.npmjs.com/package/connected-react-router))_:
* **router**: the redux-router namespace _(contains router.location.pathname,...)_
* **mgr**: the main LLNG namespace
The mgr namespace is managed by [initAction()](./index.js), which collects
actions from all `actions.js` files. Each `actions.js` file returns an object
where keys are action name _(uppercase)_ and values are related functions:
```js
{
// This function is called only if action.type === "ACTIONNAME"
// No need to check action.type
"ACTIONNAME": (state, action) => {
// ...
return newstate;
},
}
\ No newline at end of file