1.0.4 • Published 7 years ago

redux-store-reset v1.0.4

Weekly downloads
3
License
ISC
Repository
github
Last release
7 years ago

redux-store-reset

// your reducers file
import { combineReducers } from 'redux'
import { reducer as storeResetReducer } from 'redux-store-reset'
...

const rootReducer = storeResetReducer(combineReducers({ ... }))
export default rootReducer

You can dispatch action with type == 'RESET_STORE', and store will be reseted

Customization

const options = {
    type: 'MY_OWN_RESET_TYPE'
}
const rootReducer = storeResetReducer(combineReducers({ ... }), options)

Now you can use action with type == 'MY_OWN_RESET_TYPE' to reset store

1.0.4

7 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago