Replies: 1 comment 1 reply
-
@jamesgpearce, is the recommended way to add a row when you know the ID in advance, any downsides vs the built-in addRow? |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
For use cases where IDs are known in advance, or generated / managed outside of tinybase?
My specific use case atm is a daily journaling app, where each journal entry is uniquely identified by the day (
2023-10-27
).For the moment I'm using the
useSetCellCallback
to create new rows, setting a dummy property on the entry. E.g.const addEntry = useSetCellCallback('entries', dayId, 'placeholderProp', () => '@TODO', []);
Beta Was this translation helpful? Give feedback.
All reactions