This commit is contained in:
@@ -12,11 +12,6 @@ export interface Component<E, R, P extends {}> extends Pipeable.Pipeable {
|
||||
}
|
||||
|
||||
export namespace Component {
|
||||
export interface Options {
|
||||
readonly finalizerExecutionMode: "sync" | "fork"
|
||||
readonly finalizerExecutionStrategy: ExecutionStrategy.ExecutionStrategy
|
||||
}
|
||||
|
||||
export type Error<T> = T extends Component<infer E, infer _R, infer _P> ? E : never
|
||||
export type Context<T> = T extends Component<infer _E, infer R, infer _P> ? R : never
|
||||
export type Props<T> = T extends Component<infer _E, infer _R, infer P> ? P : never
|
||||
@@ -58,10 +53,8 @@ export const make = <
|
||||
: Effect.fn(body)
|
||||
: Effect.fnUntraced(body),
|
||||
displayName,
|
||||
options: {
|
||||
finalizerExecutionMode: options?.finalizerExecutionMode ?? "sync",
|
||||
finalizerExecutionStrategy: options?.finalizerExecutionStrategy ?? ExecutionStrategy.sequential,
|
||||
},
|
||||
finalizerExecutionMode: options?.finalizerExecutionMode ?? "sync",
|
||||
finalizerExecutionStrategy: options?.finalizerExecutionStrategy ?? ExecutionStrategy.sequential,
|
||||
}, ComponentProto)
|
||||
}
|
||||
|
||||
@@ -146,7 +139,7 @@ export const useFC: {
|
||||
Array.from(
|
||||
Context.omit(...nonReactiveTags)(runtimeRef.current.context).unsafeMap.values()
|
||||
),
|
||||
self.options,
|
||||
self,
|
||||
))
|
||||
|
||||
const FC = React.useMemo(() => {
|
||||
|
||||
Reference in New Issue
Block a user