0.1.0 #1

Merged
Thilawyn merged 87 commits from next into master 2025-01-18 00:54:42 +01:00
Showing only changes of commit 010416f0b1 - Show all commits

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>,