MCPcopy Create free account
hub / github.com/TanStack/store / EffectOptions

Interface EffectOptions

packages/store/src/effect.ts:4–15  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2import type { DerivedOptions } from './derived'
3
4interface EffectOptions
5 extends Omit<
6 DerivedOptions<unknown>,
7 'onUpdate' | 'onSubscribe' | 'lazy' | 'fn'
8 > {
9 /**
10 * Should the effect trigger immediately?
11 * @default false
12 */
13 eager?: boolean
14 fn: () => void
15}
16
17export class Effect {
18 /**

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected