Refactor
Lint / lint (push) Successful in 15s

This commit is contained in:
Julien Valverdé
2026-06-23 04:08:49 +02:00
parent a86cb7e024
commit 65fcfb395e
3 changed files with 6 additions and 6 deletions
+2 -2
View File
@@ -1,5 +1,5 @@
/** biome-ignore-all lint/complexity/useArrowFunction: necessary for class prototypes */
import { Context, Effect, type Equivalence, Function, Predicate, Scope } from "effect"
import { type Context, Effect, type Equivalence, Function, Predicate, Scope } from "effect"
import * as React from "react"
import * as Component from "./Component.js"
@@ -45,7 +45,7 @@ export const AsyncPrototype: AsyncPrototype = Object.freeze({
return ({ fallback, name, ...props }: AsyncProps) => {
const promise = Effect.runPromiseWith(contextRef.current)(
Effect.andThen(
Effect.flatMap(
Component.useScope([], this),
scope => Effect.provideService(this.body(props as P), Scope.Scope, scope),
)