Set Values then navigate to next screen is intermittent

Hi,

I am wondering if there is a bug here that when you set/save a whole bunch of stored values before navigating to the next screen. When I first put the blocks in, it seems to work then after a while it stops. It just does not navigate to the intended screen.

I.E.
thunk_99

Example save block

The problem with this not working, is that the user then has to save the page variables first, then press another button to exit. I would have thought that this should work. Well it does sometimes.

Thanks,

Paul

When you call a function, Thunkable does not pause the rest of the code.

So if you stack function calls and then have a navigate block below them, the navigate command will likely happen before those functions complete. That’s especially true if you are using stored variables which are very slow.

Thanks Tatiang,

The problem here though is that the navigate component does not get called.

So a little confused

Sorry, I misread what you originally wrote. Is it possible to share a link to the project?

No worries. It is hard to explain.

I have setup a real simple test app, now when you first run this it works fine, but go back and forth a few times then it stops going back to the first page

https://x.thunkable.com/copy/ec337c6a98b3b0dbef05972e580b45a6

Thank you

It doesn’t work at all for me, even the first time, on an iPhone 13 Pro.

You’re referencing a variable on screen 1 that hasn’t been defined yet. And on screen 2, you need to check for a null value for your stored variables.

Try this instead:

https://x.thunkable.com/copy/6cfae13e6934314272d00db7ea3c0ca5

We’re happy to help investigate this issue more, @thorntonp72l3. Thanks for raising it. Can you confirm all of these functions are completing upon the click event? An easy way to debug this would be to add a label after each function to show the previous function has completed. Thank you!

Hi All,

Yes so the mockup one I did was fairly lazy. Sorry, but what I have done is create/modified the same one to make it more realistic.
https://x.thunkable.com/copy/82f9001bfddeb940743efecfad80f96f

So I know what the problem is, which is okay I guess but I still feel this is a bug.

If you set the Stored variable with a entry from a blank input field it then stops working and you cannot even recover it as in force the stored variable to contain something. I have to actually change the variable to something else hence I now have 13 on the end of my variables.

Thank you,

Paul