UNPKG
@wenn/onb
Version:
latest (1.0.0)
1.0.0
onb-core
@wenn/onb
/
redux
/
reducers
/
loading.reducer.js
11 lines
(9 loc)
•
229 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{
SAVE_LOADING
}
from
'../constants'
;
export
default
function
saveLoadingReducer
(
state =
true
, action
) {
switch
(action.
type
) {
case
SAVE_LOADING
:
return
action.
loading
;
default
:
return
state; } }