Is there any way to reset a reducer property when the user close the tab ? for example I have some property like this :
const initialState = { allPokemonStore: [...], myPokemonStore: [...], randomData: [...], page: 'Home', pokemonDetail: undefined, enableToCatch: true, }
How I can remove one of the already filled property when user close the browser tab ?
2.1m questions
2.1m answers
60 comments
57.0k users