diff --git a/packages/docs/docs/getting-started.md b/packages/docs/docs/getting-started.md index d2856f3..d2ab3f4 100644 --- a/packages/docs/docs/getting-started.md +++ b/packages/docs/docs/getting-started.md @@ -182,6 +182,10 @@ The component scope is created when React mounts the component and closes when React unmounts it. When the scope closes, Effect runs the finalizers registered inside that scope. +Finalizers are forked when the scope closes, so cleanup logic can run +asynchronous Effects even though the component body itself must stay +synchronous. + ```tsx title="src/MountedMessageView.tsx" import { Console, Effect } from "effect" import { Component } from "effect-fc"