I’m working on an app in Kodular that involves saving and retrieving product data using Tiny DB. I’m facing an issue with data persistence when navigating between screens. Specifically, when I move to another screen and then return to the Screen, the values I saved previously (like the number of products, quantity, etc.) reset to zero.
Here’s what I have so far:
Storing Data
I store values in Tiny DB whenever they are updated (e.g., after adding or updating a product).
But I don’t know How to Retrieve the data when screen Initialize
Despite setting values in Tiny DB and retrieving them in the screen’s Initialize event, the values reset to zero when I navigate back to this screen. How can I ensure that the data persists correctly?
If I can use another component, please tell me.
Any help or guidance would be greatly appreciated!
Thanks Everyone for helping i was totally unable to find out where was the error so i jave reset all blocks and started again project.
Thanks everyone especially @Professional