Hi, I'm having an issue with this collection. The setup is a pretty barebones. In this scenario:
export const collectionsCollection = createCollection(
electricCollectionOptions<Collection>({
id: "collections",
getKey: (row) => row.id,
shapeOptions: {
url: `${import.meta.env.VITE_API_URL}/api/sync/collections`,
fetchClient: (input, init) =>
fetch(input, {
credentials: "include",
...init,
}),
},
onInsert: async ({ transaction }) => {
const { txId } = await ApiService.createCollection(
transaction.mutations[0].modified
);
return { txid: txId };
},
onDelete: async ({ transaction }) => {
const { txId } = await ApiService.deleteCollection(
transaction.mutations[0].modified.id
);
return { txid: txId };
},
onUpdate: async ({ transaction }) => {
const { txId } = await ApiService.updateCollection(
transaction.mutations[0].modified
);
return { txid: txId };
},
})
);
Hi, I'm having an issue with this collection. The setup is a pretty barebones. In this scenario:
useShapefrom electric, it works normally.My collection: