Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ loadCharacter
Function
loadCharacter
examples/react/batching/src/character-loader.ts:54–60 ·
view source on GitHub ↗
(id: number)
Source
from the content-addressed store, hash-verified
52
)
53
54
export
const
loadCharacter = (id: number) => {
55
const
deferred = Promise.withResolvers<CharacterT | null>()
56
57
characterBatcher.addItem({ deferred, id })
58
59
return
deferred.promise
60
}
Callers
1
characterQueryOptions
Function · 0.90
Calls
1
addItem
Method · 0.45
Tested by
no test coverage detected