You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have an React Native app (using Expo) that queues up a Cmd in the init function passed to Program.mkProgram. The Cmd does get executed in update before the first view call, but, weirdly, view gets the previous state.
Repro code
I made a minimal repro, following the counter example, modified to include a Cmd at startup:
Thanks for the report.
It's been a long time since I had React Native tooling setup and we didn't have Expo integration back then, so I don't have a good feel for what to look at.
I'd start by looking at the generated sources to see how it aligns with Expo's samples, maybe some clue will show up.
Description
I have an React Native app (using Expo) that queues up a Cmd in the init function passed to Program.mkProgram. The Cmd does get executed in update before the first view call, but, weirdly, view gets the previous state.
Repro code
I made a minimal repro, following the counter example, modified to include a Cmd at startup:
Expected and actual results
I expected Render to show a '1'; instead, it shows '0'.
Here's the trace:
This code works when run on the web (using React Native Web) with
Related information
Thanks much!
The text was updated successfully, but these errors were encountered: