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

Method submitCreateProject

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

Source from the content-addressed store, hash-verified

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

Callers 1

renderMethod · 0.95

Calls 1

mutateMethod · 0.45

Tested by

no test coverage detected