bernabe9/redux-react-session

React-router4-expamle

bigunaleksej opened this issue · 0 comments

In this file
https://github.com/bernabe9/redux-react-session/blob/master/examples/react-router-v4-example/src/api/sessionApi.js

return new Promise(resolve => setTimeout(resolve(response), 1000)); - without delay
If you emulate delay 1 second need wrap resove(response) in function
return new Promise(resolve => setTimeout(() => resolve(response), 1000)); - with delay