issues
search
timwis
/
dataface
Build and manage data with a spreadsheet-like interface
https://dataface-demo.herokuapp.com
43
stars
4
forks
source link
Right-clicking a row should have an "Add row" option to insert mid-table
#28
Open
timwis
opened
7 years ago
timwis
commented
7 years ago
Option A
Send an empty insert to the server to get back its primary key.
Insert that new row into the expected spot in the rows state (when the user refreshes, it will appear at the bottom but that's probably okay)
Wait until the server responds before rendering, to eliminate the race condition of the user editing the row before a primary key is established
Option B
Create a row in the state that has a special key, like
_new: true
When saving, check for that special key and do an insert instead
Option A
Option B
_new: true