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

Function resetTodoApi

examples/lit/basic/src/todoApi.ts:60–69  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

58}
59
60export function resetTodoApi(): void {
61 todos = [
62 { id: 1, title: 'Ship lit-query alpha' },
63 { id: 2, title: 'Write integration checks' },
64 ]
65 requestCount = 0
66 nextTodoId = 3
67 failNextFetch = false
68 failNextMutation = false
69}
70
71export function failNextFetchRequest(): void {
72 failNextFetch = true

Callers 4

mutation.tsFile · 0.90
main.tsFile · 0.90
resetDemoStateMethod · 0.90
basic-query.tsFile · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected