develwoutacause’s avatardevelwoutacause’s Twitter Archive—№ 1,822

      1. Anyone familiar with #SolidJS #signals able to help me understand why they don't leak memory? Why don't you need to unsubscribe?
    1. …in reply to @develwoutacause
      AFAICT, each signal in the graph contains a list of all its reverse dependencies (all signals who depend on it). This feels circular to me and I don't see how the browser could clean up those references. github.com/solidjs/solid/blob/40d6db6029efcb2e68d4df2b4cdf1b3644a771bb/packages/solid/src/reactive/signal.ts#L44
  1. …in reply to @develwoutacause
    Is a mark-and-sweep GC strategy able to handle signals with this data structure or am I missing an implicit unsubscribe somewhere?