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
The problem right there @ducknificient is that the closure doesn't know about the variables outside fetchEventSource methods. I handled that issue by using var variables declared somewhere else outside fetchEventSource call. Those variables will be available on the global scope and then you'll be able to use them inside those events. Binding the method call didn't work for me.
The code is working as expected
However, when using the
ev.data
, i can't access variable outside fetchEventSource. How to handle it ?The text was updated successfully, but these errors were encountered: