MCPcopy Create free account
hub / github.com/TanStack/query / back

Method back

examples/lit/default-query-function/src/post-detail.ts:22–25  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

20 }
21
22 private back(event: Event) {
23 event.preventDefault()
24 this.dispatchEvent(new CustomEvent('set-post-id', { detail: -1 }))
25 }
26
27 render() {
28 const { isPending, isError, isFetching, data, error } = this.post()

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected