MCPcopy Create free account

hub / github.com/bubblegroup/bubble-reactivity / functions

Functions55 in github.com/bubblegroup/bubble-reactivity

↓ 97 callersFunctioncreateMemo
( compute: () => T, initialValue?: T, options?: MemoOptions<T> )
src/index.ts:78
↓ 96 callersFunctionflushSync
()
src/effect.ts:14
↓ 76 callersFunctioncreateSignal
( initialValue: T, options?: SignalOptions<T> )
src/index.ts:16
↓ 50 callersMethodread
* Return the current value of this computation * Automatically re-executes the surrounding computation when the value changes
src/core.ts:143
↓ 47 callersFunctioncreateEffect
( effect: () => T, initialValue?: T, options?: { name?: string } )
src/index.ts:91
↓ 33 callersMethodloading
* Return true if the computation is the value is dependent on an unresolved promise * Triggers re-execution of the computation when the loading sta
src/core.ts:168
↓ 27 callersFunctioncreateRoot
( init: ((dispose: () => void) => T) | (() => T) )
src/index.ts:107
↓ 23 callersFunctiononCleanup
(disposable: Disposable)
src/owner.ts:125
↓ 14 callersFunction_createPromise
( promise: Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:24
↓ 12 callersFunctiongetOwner
()
src/owner.ts:50
↓ 11 callersFunctionuntrack
(fn: () => T)
src/core.ts:533
↓ 8 callersFunctiongc
()
tests/gc.test.ts:13
↓ 7 callersFunctioncatchError
( fn: () => T, handler: (error: U) => void )
src/index.ts:139
↓ 7 callersMethodwrite
Update the computation with a new value.
src/core.ts:187
↓ 6 callersFunctioncompute
( owner: Owner | null, compute: (val?: T) => T, observer: Computation<T> | null )
src/core.ts:552
↓ 6 callersFunctionsetCurrentOwner
(owner: Owner | null)
src/owner.ts:41
↓ 5 callersFunction_createAsync
( fn: () => Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:51
↓ 5 callersFunctioninit
()
tests/graph.test.ts:420
↓ 5 callersMethodwrite
(value: T)
src/effect.ts:90
↓ 4 callersMethod_updateIfNecessary
* This is the core part of the reactivity system, which makes sure that the values are updated * before they are read. We've also adapted it to ret
src/core.ts:288
↓ 3 callersMethod_notify
* Set the current node's state, and recursively mark all of this node's observers as STATE_CHECK
src/core.ts:220
↓ 3 callersFunctionhandleError
(owner: Owner | null, error: unknown)
src/owner.ts:152
↓ 3 callersFunctionoptions
({ dev, node }: BundleOptions)
tsup.config.ts:8
↓ 3 callersFunctionremoveSourceObservers
(node: ObserverType, index: number)
src/core.ts:512
↓ 3 callersFunctionrunWithOwner
( owner: Owner | null, run: () => T )
src/index.ts:123
↓ 3 callersFunctiontrack
* Instead of wiping the sources immediately on `update`, we compare them to the new sources * by checking if the source we want to add is the same as
src/core.ts:415
↓ 2 callersMethod_read
()
src/core.ts:122
↓ 2 callersMethoddispose
(this: Owner, self = true)
src/owner.ts:79
↓ 2 callersMethodemptyDisposal
()
src/owner.ts:106
↓ 2 callersFunctionfnA
()
tests/createEffect.test.ts:138
↓ 2 callersFunctionfnB
()
tests/createEffect.test.ts:142
↓ 1 callersMethod_disposeNode
()
src/owner.ts:96
↓ 1 callersMethod_notifyFlags
* Notify the computation that one of its sources has changed flags. * * @param mask A bitmask for which flag(s) were changed. * @param newFla
src/core.ts:241
↓ 1 callersMethod_setError
(error: unknown)
src/core.ts:277
↓ 1 callersMethodappend
(owner: Owner)
src/owner.ts:71
↓ 1 callersFunctioncreateChild
()
tests/untrack.test.ts:91
↓ 1 callersMethoderror
* Return true if the computation is the computation threw an error * Triggers re-execution of the computation when the error state changes
src/core.ts:179
↓ 1 callersFunctionerrorState
(node: Computation)
src/core.ts:382
↓ 1 callersFunctionflushEffects
()
src/effect.ts:18
↓ 1 callersFunctionloadingState
(node: Computation)
src/core.ts:362
↓ 1 callersFunctionlookup
(owner: Owner | null, key: string | symbol)
src/owner.ts:139
↓ 1 callersFunctionrunEffects
()
src/effect.ts:47
↓ 1 callersFunctionrunTop
* When re-executing nodes, we want to be extra careful to avoid double execution of nested owners * In particular, it is important that we check all
src/effect.ts:28
↓ 1 callersFunctionupdate
(node: Computation<T>)
src/core.ts:439
↓ 1 callersMethodwait
* Return the current value of this computation * Automatically re-executes the surrounding computation when the value changes * * If the comp
src/core.ts:154
Method_disposeNode
* Remove ourselves from the owner graph and the computation graph
src/core.ts:349
Method_notify
(state: number)
src/effect.ts:79
Method_setError
(error: unknown)
src/effect.ts:96
Methodconstructor
(initialValue: T, compute: () => T, options?: MemoOptions<T>)
src/effect.ts:74
Methodconstructor
( initialValue: T | undefined, compute: null | (() => T), options?: MemoOptions<T> )
src/core.ts:100
Methodconstructor
(signal = false)
src/owner.ts:67
FunctioncreateAsync
( fn: () => Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:64
FunctioncreatePromise
( promise: Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:42
FunctionesbuildOptions
(opts)
tsup.config.ts:23
FunctionisEqual
(a: T, b: T)
src/core.ts:525