tinybase
tinybase copied to clipboard
Allow null values in cells
When creating a new row it is impossible to store null values in a cell. It will be just dropped.
In my app, I need to check specifically for nulls
store.setRow('files', 'test_id', {
name: 'Test file',
folder_id: null,
})
console.log(store.getRow('files', 'test_id')) // {name: 'Test file'}
Unfortunately, null currently has a special meaning for a cell in several places (eg it means 'delete' in the transaction logs).
It would be a big breaking change but I could consider this for, say a v5.0 release.
Are you able to work around it for now?
Yes, sure. Thank you