UNPKG
@fitch-digital/fitch-create-app
Version:
latest (1.1.2)
1.1.2
1.1.1
1.1.0
1.0.2
1.0.1
1.0.0
Boilerplate templates for FITCH projects
@fitch-digital/fitch-create-app
/
templates
/
parcel
/
app
/
store
/
application
/
reducers.js
17 lines
(14 loc)
•
355 B
JavaScript
View Raw
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import
{
APP_READY
}
from
'./actions'
;
const
initialState = {
ready
:
false
, };
export
const
application
= (
state = initialState, action
) => {
switch
(action.
type
) {
case
APP_READY
:
return
state.
withMutations
(
ctx
=>
{ ctx.
set
(
'ready'
,
true
); });
default
:
return
state; } };