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

Method submitCreateProject

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

Source from the content-addressed store, hash-verified

342 }
343
344 private submitCreateProject(): void {
345 const name = this.draftName.trim()
346 const owner = this.draftOwner.trim()
347
348 if (!name || !owner) {
349 return
350 }
351
352 this.createProjectMutation.mutate({ name, owner })
353 }
354
355 private toggleFavorite(project: Project): void {
356 this.favoriteMutation.mutate({

Callers 1

renderMethod · 0.95

Calls 1

mutateMethod · 0.45

Tested by

no test coverage detected