Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bubblegroup/bubble-reactivity
/ functions
Functions
55 in github.com/bubblegroup/bubble-reactivity
⨍
Functions
55
◇
Types & classes
13
↓ 97 callers
Function
createMemo
( compute: () => T, initialValue?: T, options?: MemoOptions<T> )
src/index.ts:78
↓ 96 callers
Function
flushSync
()
src/effect.ts:14
↓ 76 callers
Function
createSignal
( initialValue: T, options?: SignalOptions<T> )
src/index.ts:16
↓ 50 callers
Method
read
* Return the current value of this computation * Automatically re-executes the surrounding computation when the value changes
src/core.ts:143
↓ 47 callers
Function
createEffect
( effect: () => T, initialValue?: T, options?: { name?: string } )
src/index.ts:91
↓ 33 callers
Method
loading
* 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 callers
Function
createRoot
( init: ((dispose: () => void) => T) | (() => T) )
src/index.ts:107
↓ 23 callers
Function
onCleanup
(disposable: Disposable)
src/owner.ts:125
↓ 14 callers
Function
_createPromise
( promise: Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:24
↓ 12 callers
Function
getOwner
()
src/owner.ts:50
↓ 11 callers
Function
untrack
(fn: () => T)
src/core.ts:533
↓ 8 callers
Function
gc
()
tests/gc.test.ts:13
↓ 7 callers
Function
catchError
( fn: () => T, handler: (error: U) => void )
src/index.ts:139
↓ 7 callers
Method
write
Update the computation with a new value.
src/core.ts:187
↓ 6 callers
Function
compute
( owner: Owner | null, compute: (val?: T) => T, observer: Computation<T> | null )
src/core.ts:552
↓ 6 callers
Function
setCurrentOwner
(owner: Owner | null)
src/owner.ts:41
↓ 5 callers
Function
_createAsync
( fn: () => Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:51
↓ 5 callers
Function
init
()
tests/graph.test.ts:420
↓ 5 callers
Method
write
(value: T)
src/effect.ts:90
↓ 4 callers
Method
_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 callers
Method
_notify
* Set the current node's state, and recursively mark all of this node's observers as STATE_CHECK
src/core.ts:220
↓ 3 callers
Function
handleError
(owner: Owner | null, error: unknown)
src/owner.ts:152
↓ 3 callers
Function
options
({ dev, node }: BundleOptions)
tsup.config.ts:8
↓ 3 callers
Function
removeSourceObservers
(node: ObserverType, index: number)
src/core.ts:512
↓ 3 callers
Function
runWithOwner
( owner: Owner | null, run: () => T )
src/index.ts:123
↓ 3 callers
Function
track
* 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 callers
Method
_read
()
src/core.ts:122
↓ 2 callers
Method
dispose
(this: Owner, self = true)
src/owner.ts:79
↓ 2 callers
Method
emptyDisposal
()
src/owner.ts:106
↓ 2 callers
Function
fnA
()
tests/createEffect.test.ts:138
↓ 2 callers
Function
fnB
()
tests/createEffect.test.ts:142
↓ 1 callers
Method
_disposeNode
()
src/owner.ts:96
↓ 1 callers
Method
_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 callers
Method
_setError
(error: unknown)
src/core.ts:277
↓ 1 callers
Method
append
(owner: Owner)
src/owner.ts:71
↓ 1 callers
Function
createChild
()
tests/untrack.test.ts:91
↓ 1 callers
Method
error
* 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 callers
Function
errorState
(node: Computation)
src/core.ts:382
↓ 1 callers
Function
flushEffects
()
src/effect.ts:18
↓ 1 callers
Function
loadingState
(node: Computation)
src/core.ts:362
↓ 1 callers
Function
lookup
(owner: Owner | null, key: string | symbol)
src/owner.ts:139
↓ 1 callers
Function
runEffects
()
src/effect.ts:47
↓ 1 callers
Function
runTop
* 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 callers
Function
update
(node: Computation<T>)
src/core.ts:439
↓ 1 callers
Method
wait
* 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
Method
constructor
(initialValue: T, compute: () => T, options?: MemoOptions<T>)
src/effect.ts:74
Method
constructor
( initialValue: T | undefined, compute: null | (() => T), options?: MemoOptions<T> )
src/core.ts:100
Method
constructor
(signal = false)
src/owner.ts:67
Function
createAsync
( fn: () => Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:64
Function
createPromise
( promise: Promise<T>, initial?: T, options?: SignalOptions<T> )
src/index.ts:42
Function
esbuildOptions
(opts)
tsup.config.ts:23
Function
isEqual
(a: T, b: T)
src/core.ts:525