Skip to content

A higher order component to clean app your app state on componentWillUnmount

Notifications You must be signed in to change notification settings

renanvalentin/redux-clean-state

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

REDUX CLEAN STATE

Sometimes you need to clean up your redux state after leaving a view. redux-clean-state helps you by creating a HoC that will clean up your state after triggering componentWillUnmount.

usage

import cleanState from 'redux-clean-state';

import YourComponent from 'YourComponenet';

const Component = cleanState(Component, 'CLEAN_UP_ACTION');

class App extends React.Component {
    render() {
        return <Componenet />;
    }
}

About

A higher order component to clean app your app state on componentWillUnmount

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published