@tanstack/db
Version:
A reactive client store for building super fast apps on sync
1 lines • 585 B
Source Map (JSON)
{"version":3,"file":"source-record.cjs","names":[],"sources":["../../../src/utils/source-record.ts"],"sourcesContent":["/**\n * Creates a record keyed by source ids. Each source id is unique, so a plain\n * object would receive a new hidden class for every compiled query. A record\n * without a prototype avoids those shape transitions and cannot confuse an\n * alias such as `constructor` with an inherited member.\n */\nexport function createSourceRecord<T>(): Record<string, T> {\n return Object.create(null)\n}\n"],"mappings":"AAMA,SAAgB,qBAA2C;CACzD,OAAO,uBAAO,OAAO,IAAI;AAC3B"}