Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
P
pill_minder
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Phuengton Chummuel
pill_minder
Commits
cbd2029f
Commit
cbd2029f
authored
Mar 21, 2018
by
Phuengton Chummuel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add middleware thunk
parent
c4c99419
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
configureStore.js
src/configureStore.js
+3
-2
No files found.
src/configureStore.js
View file @
cbd2029f
import
{
createStore
}
from
'redux'
import
{
createStore
,
applyMiddleware
}
from
'redux'
import
reducers
from
'./reducers'
import
thunk
from
'redux-thunk'
export
default
function
configureStore
()
{
const
store
=
createStore
(
reducers
)
const
store
=
createStore
(
reducers
,
applyMiddleware
(
thunk
)
)
if
(
module
.
hot
)
{
module
.
hot
.
accept
(()
=>
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment