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
import{T,now,log}from'https://cdn.skypack.dev/timeline-monoid';consta=T();constb=(a).sync(a=>a*2);constc=(a)(b).sync(([a,b])=>a+b);constabc=(a)(b)(c);functiontest(){constt=abc.sync(log);a[now]=1;// NOTE: `t` falls out of scope here ...}test();a[now]=5;// ... but `log` still gets invoked
So, once you've added listeners with sync, you're stuck with them forever - there's no way to get rid of them?
If so, this is interesting as a proof of concept (and it's delightfully small) but it doesn't seem like this is going to be useful, for example, in user interfaces, where elements of the UI might get added or removed, be active or inactive, and so on?
The text was updated successfully, but these errors were encountered:
It looks like this library leaks memory?
So, once you've added listeners with
sync
, you're stuck with them forever - there's no way to get rid of them?If so, this is interesting as a proof of concept (and it's delightfully small) but it doesn't seem like this is going to be useful, for example, in user interfaces, where elements of the UI might get added or removed, be active or inactive, and so on?
The text was updated successfully, but these errors were encountered: