MCPcopy Index your code
hub / github.com/TanStack/query / seed

Function seed

examples/react/react-router/src/contacts.ts:30–35  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

28export type Contact = (typeof initialData)[number]
29
30const seed = async () => {
31 const contacts = await localforage.getItem<Contact[]>('contacts')
32 if (!contacts) {
33 set(initialData)
34 }
35}
36
37seed()
38

Callers 1

contacts.tsFile · 0.85

Calls 1

setFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…