Total Complexity | 1 |
Complexity/F | 1 |
Lines of Code | 8 |
Function Count | 1 |
Duplicated Lines | 0 |
Ratio | 0 % |
Changes | 1 | ||
Bugs | 0 | Features | 1 |
1 | import { fromJS } from 'immutable'; |
||
2 | import { generateLastUpdate } from './../../../util/lastUpdate'; |
||
3 | |||
4 | export const setLoading = (state, { stateKey, state: loadingState }) => |
||
5 | state.setIn([stateKey], fromJS({ |
||
6 | isLoading: loadingState, |
||
|
|||
7 | lastUpdate: generateLastUpdate() |
||
8 | })); |
||
9 |
This checks looks for references to variables that have not been declared. This is most likey a typographical error or a variable has been renamed.
To learn more about declaring variables in Javascript, see the MDN.