-
-
Notifications
You must be signed in to change notification settings - Fork 135
Open
Description
When using the configuration
configureSyncedSupabase({
changesSince: 'last-sync',
fieldCreatedAt: 'created_at',
fieldUpdatedAt: 'modified_at',
fieldDeleted: 'deleted',
updatePartial: true
})
const store$ = observable(
syncedSupabase({
supabase,
collection: 'store',
filter: select => select.eq('user_id', '1'),
transform: {
load(value) {
return {...value, modifiedAt: value.modified_at}
},
save(value) {
return {...value, modified_at: value.modifiedAt}
}
},
persist: {
plugin: ObservablePersistLocalStorage,
name: 'store',
retrySync: true
}
})
)
The plugin tries to POST instead of PATCH the first time you update a value. If I leave the fields untransformed it works just fine.
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels