From 3000ff2d875634f621c24398e0921f812963f5eb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Tue, 9 Jun 2026 11:18:08 +0200 Subject: [PATCH] Docs --- packages/docs/docs/getting-started.md | 4 ++++ 1 file changed, 4 insertions(+) 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"