Skip to content

Commit

Permalink
fix sync with recs
Browse files Browse the repository at this point in the history
  • Loading branch information
dhvanipa committed Oct 13, 2023
1 parent 16e3230 commit b675439
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/store-sync/src/recs/configToRecsComponents.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,15 @@ export function configToRecsComponents<TConfig extends StoreConfig>(
])
),
{
id: tableIdToHex(config.namespace, tableName),
id: tableIdToHex(
table.registerAsRoot === undefined || !table.registerAsRoot ? config.namespace : "",
tableName
),
metadata: {
componentName: tableName,
tableName: `${config.namespace}:${tableName}`,
tableName: `${
table.registerAsRoot === undefined || !table.registerAsRoot ? config.namespace : ""
}:${tableName}`,
keySchema: table.keySchema,
valueSchema: table.schema,
},
Expand Down

0 comments on commit b675439

Please sign in to comment.