@adamjnav I ran into this warning when trying to use setInterval() to schedule OTA periodic update checks for an app. When I got the warning I instead changed it to keep track of when the last check was done and then when the user clicked on one of the buttons, compare the current time with the time of the last update to see if enough time had passed since the previous check. I then execute the “real” onPress handler. That worked well enough for my simple app. I imagine this could get messy in a more complex app
I suspect having an OTA updates state machine that you can send events to and another state machine for dealing with button presses etc. would make it tidier.
@dent your message is not very clear at all. You have just pasted in an error message without saying it was an error message. If I hadn’t seen it myself before I would have thought it was written by you.
You have not asked any question or given us any indication of what you’re doing that might have resulted in the error.
If you want us to help you, please provide more context. But see the following message (and maybe the rest of the thread) for some more info: