You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
useEffect(()=>{(async()=>{for(consteventsubscribe.call(instance,'something')){// Do something}})();return()=>{// Teardown function// Is it possible to teardown that asyncIterator somehow?};})
I really starting to like this library.
One thing that I don't understand it how to use this with for instance
useEffect
in React where you have an external teardown function...Can you provide any example how to do that? <3
The text was updated successfully, but these errors were encountered: