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

Method submitCreateProject

examples/lit/pagination/src/main.ts:322–331  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

320 }
321
322 private submitCreateProject(): void {
323 const name = this.draftName.trim()
324 const owner = this.draftOwner.trim()
325
326 if (!name || !owner) {
327 return
328 }
329
330 this.createProjectMutation.mutate({ name, owner })
331 }
332
333 private toggleFavorite(project: Project): void {
334 this.favoriteMutation.mutate({

Callers 1

renderMethod · 0.95

Calls 1

mutateMethod · 0.45

Tested by

no test coverage detected