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

Method handleInput

examples/lit/batching/src/main.ts:35–46  ·  view source on GitHub ↗
(event: Event)

Source from the content-addressed store, hash-verified

33 }
34
35 private handleInput(event: Event) {
36 const parsedIds = (event.currentTarget as HTMLInputElement).value
37 .split(',')
38 .map((id) => id.trim())
39
40 if (parsedIds.every((id) => /^\d+$/.test(id))) {
41 this.ids = parsedIds.map(Number)
42 this.error = ''
43 } else {
44 this.error = 'Invalid.. only use numbers and comma'
45 }
46 }
47
48 render() {
49 return html`

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected