Production build resets form values when navigating, Expo 52, React Native 0.76.5, React-hook-form 7.53.2 #12474
Unanswered
augusthjerrild
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi!
I have a very weird scenario in my Expo app..
.
When working locally, everything works totally fine and as just as expected. I have a page with some inputs, and when navigation to a new page (within the same Form), and I'm using my useFormContext with watch (or getValues), I get my values so I can show them in the next page.
BUT! When I deploy this code to the stores, both iOS and Android, when I'm navigating, the values dissapears, and when i'm navigating back to the page with the inputs, the data is gone (which isn't the case locally).
Somehow I'm loosing the connection to the Form or it get's erased somehow?...
It's pretty hard to debug when it only happens on deployed code.. Does anyone have a clue what's going on? I'm navigating in a stack-navigator, with navigation v. 7, and the code i'm running locally is EXACT the same as the deployed code.
Hopefully someone can help! :-)
Beta Was this translation helpful? Give feedback.
All reactions