Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- export default waitMWare => () => (
- next => action => {
- if (action.wait) {
- setTimeout(() => next(action), action.wait)
- } else {
- return next(action)
- }
- }
- )
- dispatch(openModal({type: 'OPEN_MODAL', wait: 5000}))
Add Comment
Please, Sign In to add comment