Friends, please tell me if it is possible to use some kind of global state in Adalo for two or several of my custom components?
AsyncStorage and any databases is not suitable.
Thank you.
Sure, just use global.whatever
so in 1 component set global.myValue = 1
and then in the other component just use const myValue = global.myValue
This will persist until the app is closed.
1 Like
Thank you, @TKOTC ! Will this also work in native apps?
yup. I use it all the time due to Adalo’s component lifecycle management throwing my components into infinite loops.
Thats great! It works!))) Thank you!
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.