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

Method render

examples/lit/batching/src/main.ts:48–81  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 render() {
49 return html`
50 <batching-query-provider>
51 <div class="App">
52 <h2>Character fetcher</h2>
53 <div>
54 <label for="ids" style="display: block">
55 Character ids (numeric, comma separated)
56 </label>
57 <input
58 id="ids"
59 style="display: inline-block"
60 placeholder="ids"
61 @input=${this.handleInput}
62 />
63 </div>
64
65 ${this.error ? html`<h3 style="color: red">${this.error}</h3>` : null}
66
67 <button
68 type="button"
69 ?disabled=${!!this.error}
70 @click=${() => (this.idsToLoad = this.ids)}
71 >
72 Load characters
73 </button>
74 <div>
75 <h4 style="text-align: left">Characters:</h4>
76 <character-list .ids=${this.idsToLoad}></character-list>
77 </div>
78 </div>
79 </batching-query-provider>
80 `
81 }
82}
83
84customElements.define('batching-query-provider', BatchingQueryProvider)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected