useEffect
Some checks failed
Lint / lint (push) Failing after 10s

This commit is contained in:
Julien Valverdé
2025-01-15 22:12:33 +01:00
parent 14e028e8c8
commit 010416f0b1

View File

@@ -68,18 +68,18 @@ export class Reffuse<R> {
]) ])
} }
// useEffect<A, E>( useEffect<A, E>(
// effect: Effect.Effect<A, E, RuntimeR | ContextR | Scope.Scope>, effect: Effect.Effect<A, E, R | Scope.Scope>,
// deps?: React.DependencyList, deps?: React.DependencyList,
// options?: RenderOptions, options?: RenderOptions,
// ): void { ): void {
// const runSync = this.useRunSync() const runSync = this.useRunSync()
// return React.useEffect(() => { runSync(effect) }, [ return React.useEffect(() => { runSync(Effect.scoped(effect)) }, [
// ...options?.doNotReExecuteOnRuntimeOrContextChange ? [] : [runSync], ...options?.doNotReExecuteOnRuntimeOrContextChange ? [] : [runSync],
// ...(deps ?? []), ...(deps ?? []),
// ]) ])
// } }
useSuspense<A, E>( useSuspense<A, E>(
effect: Effect.Effect<A, E, R>, effect: Effect.Effect<A, E, R>,