From 618cee4028daf8849e8729680427656b8c322741 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Julien=20Valverd=C3=A9?= Date: Tue, 25 Feb 2025 18:39:19 +0100 Subject: [PATCH] Callback tests --- packages/example/src/routes/tests.tsx | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/packages/example/src/routes/tests.tsx b/packages/example/src/routes/tests.tsx index ab6e89a..bb58968 100644 --- a/packages/example/src/routes/tests.tsx +++ b/packages/example/src/routes/tests.tsx @@ -1,4 +1,5 @@ import { R } from "@/reffuse" +import { Button } from "@radix-ui/themes" import { createFileRoute } from "@tanstack/react-router" import { Console, Effect } from "effect" @@ -19,6 +20,12 @@ function RouteComponent() { Effect.delay("1 second"), )) + const logValue = R.useCallbackSync(Effect.fn(function*(value: string) { + yield* Effect.log(value) + })) - return
Hello "/tests"!
+ + return ( + + ) }