State not clearing on app refresh

Share on facebook
Share on google
Share on twitter
Share on linkedin
organic-n-local-seo

https://www.reddit.com/r/reactnative/comments/efnjo3/state_not_clearing_on_app_refresh/

I'm having this weird bug(?), I'm working with Expo, running the app from my phone after scanning the QR code.

It's just your good old To-Do app, but if I add a bunch of elements, change the code and save the file (causing a refresh), the change occurs, but the elements (which are stored on the state) persist…

I was expecting it to clear the state after a refresh like on the browser, is this behavior normal?

Thanks a lot in advance guys

submitted by /u/gabrieljim
[link] [comments]

Sign up for our Newsletter

Agree to our privacy policy.