Pyproxy being destroyed?

pyproxy.gen.ts:237

   Uncaught Error: This borrowed proxy was automatically destroyed at the end of a function call. Try using create_proxy or create_once_callable.

The object was of type “function”

is what i get when i try to use js.setInterval

II fixed it i used to_js

I recommend including your code so that we are not guessing.

Using to_js() does not sound right. For functions, you should use create_proxy().

2 Likes

Thank you for your support :smiley:! I will try out your suggestion.