Effect CommunityEC
Effect Community2y ago
113 replies
TylorS

Creating a Fiber within a Specific Scope: Is there a Better Way?

Is there a better way to do this? The goal is to create a Fiber which starts synchronously so DOM events can be processed correctly, but I also want it to be attached to a Scope, or even the parent Fiber to be cleaned up when a component is no longer needed. Right now this is the only API I know to create a Fiber within a specific Scope, but it requires creating 2 fibers instead of 1
Screenshot_2024-01-10_at_3.28.05_PM.png
Was this page helpful?