Skip to main content Link Search Menu Expand Document (external link)

Reactivity overview

Added in v1.0.0


Table of contents


constructors

make

Signature

export declare const make: any

Added in v1.0.0

layers

layer

Signature

export declare const layer: Layer.Layer<Reactivity>

Added in v1.0.0

model

Reactivity (namespace)

Added in v1.0.0

Service (interface)

Signature

export interface Service {
  readonly unsafeInvalidate: (keys: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>) => void
  readonly invalidate: (
    keys: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>
  ) => Effect.Effect<void>
  readonly mutation: <A, E, R>(
    keys: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>,
    effect: Effect.Effect<A, E, R>
  ) => Effect.Effect<A, E, R>
  readonly query: <A, E, R>(
    keys: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>,
    effect: Effect.Effect<A, E, R>
  ) => Effect.Effect<Mailbox.ReadonlyMailbox<A, E>, never, R | Scope.Scope>
  readonly stream: <A, E, R>(
    keys: ReadonlyArray<unknown> | ReadonlyRecord<string, ReadonlyArray<unknown>>,
    effect: Effect.Effect<A, E, R>
  ) => Stream.Stream<A, E, Exclude<R, Scope.Scope>>
}

Added in v1.0.0

tags

Reactivity (class)

Signature

export declare class Reactivity

Added in v1.0.0