Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/TanStack/query
/ setPostId
Method
setPostId
examples/lit/default-query-function/src/post-list.ts:16–18 ·
view source on GitHub ↗
(id: number)
Source
from the content-addressed store, hash-verified
14
}
15
16
private setPostId(id: number) {
17
this.dispatchEvent(
new
CustomEvent(
'set-post-id'
, { detail: id }))
18
}
19
20
render() {
21
const
queryClient = useQueryClient()
Callers
1
render
Method · 0.95
Calls
no outgoing calls
Tested by
no test coverage detected