-
-
Notifications
You must be signed in to change notification settings - Fork 121
Open
Description
Describe the bug
When using the partykit persister deletes are not written to the persisted database. Delete items reappear after a reconnect. See also this Discord message with a repo h
I have modified my partykit server to inspect the log messages like so
import { TinyBasePartyKitServer } from 'tinybase/persisters/persister-partykit-server';
export default class PartyKitServer extends TinyBasePartyKitServer {
async onMessage(
...params: Parameters<TinyBasePartyKitServer['onMessage']>
): Promise<void> {
console.log('onMessage', params[0]);
return super.onMessage(...params);
}
async onRequest(
...params: Parameters<TinyBasePartyKitServer['onRequest']>
): Promise<ReturnType<TinyBasePartyKitServer['onRequest']>> {
console.log('onRequest', params[0]);
return super.onRequest(...params);
}
}When creating/deleting items I see the following in my partykit server logs.
// After add
onMessage s[{"feeding-sessions":{"1767445910545":{"durationInSeconds":2,"endTime":"2026-01-03T13:11:52.395Z"}}},{},1]
// After a delete
onMessage s[{"feeding-sessions":{}},{},1]
I did not
(Nevermind the stupid data schema please)
Your Example Website or App
https://discord.com/channels/1027918215323590676/1057696796404629720/1285757436803813416
Steps to Reproduce the Bug or Issue
No response
Expected behavior
Items are removed from the partykit store
Screenshots or Videos
No response
Platform
tinybase 7.3.1
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels