MCPcopy Create free account
hub / github.com/TanStack/db / getStableShapeIdentity

Function getStableShapeIdentity

packages/electric-db-collection/src/electric.ts:360–370  ·  view source on GitHub ↗
(shapeOptions: {
  url: string
  params?: Record<string, unknown>
})

Source from the content-addressed store, hash-verified

358}
359
360function getStableShapeIdentity(shapeOptions: {
361 url: string
362 params?: Record<string, unknown>
363}): string {
364 return JSON.stringify(
365 toStableSerializable({
366 url: shapeOptions.url,
367 params: shapeOptions.params ?? null,
368 }),
369 )
370}
371
372// Check if a message contains txids in its headers
373function hasTxids<T extends Row<unknown>>(

Callers 1

createElectricSyncFunction · 0.85

Calls 1

toStableSerializableFunction · 0.70

Tested by

no test coverage detected