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

Method render

integrations/lit-vite/src/main.ts:40–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 }
39
40 render() {
41 const query = this.query()
42
43 if (query.isPending) {
44 return html`<div>Loading...</div>`
45 }
46
47 if (query.isError) {
48 return html`<div>An error has occurred!</div>`
49 }
50
51 return html`<div>${query.data}</div>`
52 }
53}
54
55customElements.define('lit-query-provider', LitQueryProvider)

Callers 3

main.jsxFile · 0.45
index.jsFile · 0.45
index.jsFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected