Using Defer/Deferlow within JS LiveAPI
Hello All,
I've run into this error: "Changes cannot be triggered by notifications. You will need to defer your response.: 'done'"
How would I defer inside of JS, using the LiveAPI, rather using the Defer object in the main environment?
Thanks,
Adam
Specifics of exactly what you're trying to do would be helpful, but as a general rule, everything in JS is deferred anyway. The problem is an old one, happens with certain combinations of calls going through Python (which the JS code is tied to). I use a task() to delay execution with these sorts of problems and delay the value one tick, but another (perhaps more straightforward) way is to send a message out of the JS box through a second outlet, delay or defer it with a max object, and then send it back to the inlet of the JS box to go to a seperate function and finish the original call. If you give specifics or some example code maybe I can give better advice?
a