Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/pmndrs/valtio
/ functions
Functions
274 in github.com/pmndrs/valtio
⨍
Functions
274
◇
Types & classes
28
↓ 121 callers
Function
proxy
(baseObject: T = {} as T)
src/vanilla.ts:186
↓ 92 callers
Function
useSnapshot
( proxyObject: T, options?: Options, )
src/react.ts:119
↓ 78 callers
Function
proxySet
(initialValues?: Iterable<T> | null)
src/vanilla/utils/proxySet.ts:57
↓ 40 callers
Function
proxyMap
(entries?: Iterable<[K, V]> | undefined | null)
src/vanilla/utils/proxyMap.ts:55
↓ 39 callers
Function
snapshot
(proxyObject: T)
src/vanilla.ts:354
↓ 28 callers
Function
subscribe
( proxyObject: T, callback: (unstable_ops: Op[]) => void, notifyInSync?: boolean, )
src/vanilla.ts:313
↓ 13 callers
Function
generateTestData
(size: number)
tests/proxyMap.bench.ts:6
↓ 12 callers
Function
useCommitCount
(initialCount = 0)
tests/utils.tsx:9
↓ 12 callers
Function
watch
( callback: WatchCallback, options?: WatchOptions, )
src/vanilla/utils/watch.ts:37
↓ 10 callers
Function
devtools
( proxyObject: T, options?: Options, )
src/vanilla/utils/devtools.ts:37
↓ 10 callers
Function
useFloatAnimation
( animation: AnimationName, offset: number = 0, )
website/components/LandingPage/useFloatAnimation.tsx:33
↓ 9 callers
Function
deepClone
( obj: T, getRefSet: () => WeakSet<object> = getDefaultRefSet, )
src/vanilla/utils/deepClone.ts:17
↓ 7 callers
Function
get
()
tests/deepProxy.test.tsx:251
↓ 7 callers
Function
getMapForThis
(x: any)
src/vanilla/utils/proxyMap.ts:69
↓ 7 callers
Function
sleep
(ms: number)
tests/utils.tsx:3
↓ 6 callers
Function
ref
(obj: T)
src/vanilla.ts:369
↓ 5 callers
Function
asIterable
(other: RSetLike<U> | Set<U>)
src/vanilla/utils/proxySet.ts:94
↓ 5 callers
Function
isProxySet
(obj: object)
src/vanilla/utils/proxySet.ts:30
↓ 5 callers
Function
use2
(x: T)
tests/async.test.tsx:10
↓ 4 callers
Function
expectOutputToMatch
()
tests/proxyMap.test.tsx:123
↓ 4 callers
Function
expectOutputToMatch
()
tests/proxySet.test.tsx:126
↓ 4 callers
Function
getMapForThis
(x: any)
src/vanilla/utils/proxySet.ts:71
↓ 4 callers
Function
isProxy
(x: any)
src/vanilla/utils/proxyMap.ts:4
↓ 4 callers
Function
isProxy
(x: any)
src/vanilla/utils/proxySet.ts:5
↓ 4 callers
Function
isProxyMap
(obj: object)
src/vanilla/utils/proxyMap.ts:16
↓ 4 callers
Function
maybeProxify
(x: any)
src/vanilla/utils/proxySet.ts:4
↓ 4 callers
Function
unstable_getInternalStates
()
src/vanilla.ts:378
↓ 4 callers
Function
useProxy
( proxy: T, options?: NonNullable<Parameters<typeof useSnapshot>[1]>, )
src/react/utils/useProxy.ts:25
↓ 3 callers
Function
addItem
(id: number)
tests/proxyMap.test.tsx:754
↓ 3 callers
Function
addItem
()
tests/proxySet.test.tsx:617
↓ 3 callers
Function
getAllFilesRecursively
(folder)
website/_utils/file_helpers.ts:33
↓ 3 callers
Function
getSlugs
(p: string)
website/lib/mdx.ts:79
↓ 3 callers
Function
isObject
(x: unknown)
src/vanilla.ts:3
↓ 3 callers
Function
notifyUpdate
( op: Op | undefined, nextVersion = ++versionHolder[0], )
src/vanilla.ts:196
↓ 3 callers
Function
unstable_enableOp
( enabled: boolean | typeof createOpDefault = true, )
src/vanilla.ts:449
↓ 2 callers
Function
createPropListener
(prop: string | symbol)
src/vanilla.ts:219
↓ 2 callers
Method
doubled
()
tests/class.test.tsx:202
↓ 2 callers
Function
ensureVersion
(nextCheckVersion = versionHolder[0])
src/vanilla.ts:206
↓ 2 callers
Function
getAllDocs
()
website/lib/mdx.ts:67
↓ 2 callers
Function
getEsbuild
()
rollup.config.mjs:22
↓ 2 callers
Function
isNavigationRecord
(obj: object)
website/components/layouts/DocLayout/DocLayout.tsx:81
↓ 2 callers
Function
makeEmbed
(html: string, type: string)
website/lib/mdx.ts:45
↓ 2 callers
Function
mean
(a: number[])
tests/performance.test.tsx:27
↓ 2 callers
Function
pipe
(...fns: fn[])
website/_utils/file_helpers.ts:7
↓ 2 callers
Function
removePropListener
(prop: string | symbol)
src/vanilla.ts:247
↓ 2 callers
Function
saveImage
(url)
examples/photo-booth-vanillajs/src/main.js:73
↓ 2 callers
Function
subscribeKey
( proxyObject: T, key: K, callback: (value: T[K]) => void, notifyInSync?: boolean, )
src/vanilla/utils/subscribeKey.ts:14
↓ 2 callers
Function
updatePreviousRef
()
website/components/layouts/DocLayout/DocLayout.tsx:102
↓ 2 callers
Function
visit
(value: unknown)
src/vanilla/utils/deepProxy.ts:34
↓ 1 callers
Function
addListener
(listener: Listener)
src/vanilla.ts:254
↓ 1 callers
Function
addPropListener
(prop: string | symbol, propValue: unknown)
src/vanilla.ts:232
↓ 1 callers
Function
buildNestedObj
(depth: number)
tests/performance.test.tsx:43
↓ 1 callers
Function
clamp
(num: number, min: number, max: number)
website/components/LandingPage/useFloatAnimation.tsx:30
↓ 1 callers
Function
cleanup
()
src/vanilla/utils/watch.ts:55
↓ 1 callers
Function
cloneContainer
(src: T)
src/vanilla/utils/deepProxy.ts:16
↓ 1 callers
Function
createCommonJSConfig
(input, output)
rollup.config.mjs:72
↓ 1 callers
Function
createDeclarationConfig
(input, output)
rollup.config.mjs:30
↓ 1 callers
Function
createESMConfig
(input, output)
rollup.config.mjs:47
↓ 1 callers
Function
dateSortDesc
(a: any, b: any)
website/lib/mdx.ts:83
↓ 1 callers
Function
exampleCode
(dur: number, count: number)
website/components/LandingPage/CodeExample.tsx:6
↓ 1 callers
Function
formatSlug
(slug: string)
website/lib/mdx.ts:75
↓ 1 callers
Function
getDocBySlug
(slug: string)
website/lib/mdx.ts:95
↓ 1 callers
Function
getDocsMap
()
website/lib/mdx.ts:235
↓ 1 callers
Function
getDocsNav
()
website/lib/mdx.ts:244
↓ 1 callers
Function
getId
()
examples/photo-booth-vanillajs/src/main.js:8
↓ 1 callers
Function
getSourceFromSlug
(slug: string)
website/lib/mdx.ts:89
↓ 1 callers
Function
getTitle
(path: string)
website/lib/mdx.ts:214
↓ 1 callers
Function
hasForEach
( o: RSetLike<U>, )
src/vanilla/utils/proxySet.ts:89
↓ 1 callers
Method
inc
()
tests/deepProxy.test.tsx:277
↓ 1 callers
Function
incrementCount
()
website/components/LandingPage/state.ts:16
↓ 1 callers
Function
isIterable
(o: unknown)
src/vanilla/utils/proxySet.ts:86
↓ 1 callers
Function
isObject
(x: unknown)
src/vanilla/utils/deepClone.ts:3
↓ 1 callers
Function
isObject
(x: unknown)
src/vanilla/utils/deepProxy.ts:5
↓ 1 callers
Function
isScrollable
* indicates if an element can be scrolled * * @param {Node} el
website/components/layouts/DocLayout/DocLayout.tsx:58
↓ 1 callers
Function
listener
(op)
src/vanilla.ts:326
↓ 1 callers
Function
loadImages
PERSISTED IMAGES HANDLING
examples/photo-booth-vanillajs/src/main.js:53
↓ 1 callers
Function
logSlope
(xs: number[], ys: number[])
tests/performance.test.tsx:29
↓ 1 callers
Function
map
(fn: fn)
website/_utils/file_helpers.ts:17
↓ 1 callers
Function
measurePerformance
( setUp: () => void, action: () => void, tearDown: () => void, )
tests/performance.test.tsx:7
↓ 1 callers
Function
nearestScrollableContainer
* Find the nearst scrollable ancestor (or self if scrollable) * * Code adapted and simplified from the smoothscroll polyfill * * * @param {Elemen
website/components/layouts/DocLayout/DocLayout.tsx:51
↓ 1 callers
Function
newProxy
(target: T, handler: ProxyHandler<T>)
src/vanilla.ts:176
↓ 1 callers
Function
onScroll
()
website/components/layouts/Header/Header.tsx:126
↓ 1 callers
Function
pathJoinPrefix
(prefix: string)
website/_utils/file_helpers.ts:25
↓ 1 callers
Function
prepareDoc
(doc: string)
website/lib/mdx.ts:218
↓ 1 callers
Function
registerSnapMap
()
src/vanilla/utils/proxyMap.ts:61
↓ 1 callers
Function
registerSnapMap
()
src/vanilla/utils/proxySet.ts:63
↓ 1 callers
Function
removeExtension
(path: string)
website/lib/mdx.ts:210
↓ 1 callers
Function
removeImage
(id)
examples/photo-booth-vanillajs/src/main.js:58
↓ 1 callers
Function
removeListener
()
src/vanilla.ts:265
↓ 1 callers
Function
renderCanvasControls
(hasCandidateImage)
examples/photo-booth-vanillajs/src/main.js:116
↓ 1 callers
Function
renderImages
(images, selectedId)
examples/photo-booth-vanillajs/src/main.js:79
↓ 1 callers
Function
revalidate
()
src/vanilla/utils/watch.ts:65
↓ 1 callers
Function
selectImage
(id)
examples/photo-booth-vanillajs/src/main.js:62
↓ 1 callers
Function
startMediaStream
MEDIA STREAM INIT
examples/photo-booth-vanillajs/src/main.js:130
↓ 1 callers
Function
useCodesandboxTheme
(mdxSource: string)
website/hooks/useCodesandboxTheme.ts:5
↓ 1 callers
Function
useFilter
()
examples/todo-with-proxyMap/src/store.ts:88
↓ 1 callers
Function
useFilter
()
examples/todo/src/store.ts:56
↓ 1 callers
Function
useTheme
()
website/hooks/useTheme.ts:4
↓ 1 callers
Function
useTodos
()
examples/todo-with-proxyMap/src/store.ts:51
↓ 1 callers
Function
useTodos
()
examples/todo/src/store.ts:43
next →
1–100 of 274, ranked by callers