Fork me on GitHub
#cljsrn
<
2017-02-05
>
Pishty12:02:34

hello guys, am sure this isnt the right place for this query but not sure where else to ask, am using a standard react native/redux application. how do i reset the application state on the android emulator ? it seems to retain previous props values after reload

Pishty12:02:14

should i reset the values when the parent component is unmounted with componentWillUnmount() ? is that a normal thing to do ?

pesterhazy12:02:08

What do you mean by application state?

Pishty12:02:36

am sorry man, the props were retaining their previous state after i reloaded the emulator

Pishty12:02:45

it turned out to be a config issue

pesterhazy12:02:04

Yeah that should not happen

Pishty12:02:37

a side question regarding this

Pishty13:02:06

should the state be reset when u reload the emulator

Pishty13:02:14

not restart but reload

Pishty13:02:32

like when we control + M on the emulator then reload

pesterhazy13:02:07

The entire JavaScript runtime gets reset

pesterhazy13:02:45

Just like reloading in the browser

Pishty13:02:18

oh i see, thank u so much @pesterhazy, have a great sunday