MCPcopy Create free account
hub / github.com/electric-sql/electric / itemShape

Function itemShape

examples/tanstack/src/Example.tsx:16–18  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

14const itemsUrl = new URL(`/items`, baseApiUrl)
15
16const itemShape = () => ({
17 url: itemsUrl.href,
18})
19
20async function createItem(newId: string) {
21 const itemsStream = getShapeStream<Item>(itemShape())

Callers 3

createItemFunction · 0.85
clearItemsFunction · 0.85
ExampleFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected