Add delete, error handling
- Wire up deleting a series. - Add an error boundary for better error handling from the server function. Suspense and bounday expect the child to be an option or a result respectively not a view itself. Took a while to figure that out.
This commit is contained in:
parent
3d3b08caf1
commit
a2c8a15d84
7 changed files with 113 additions and 23 deletions
1
sql/delete_series.sql
Normal file
1
sql/delete_series.sql
Normal file
|
@ -0,0 +1 @@
|
|||
delete from series where id = $1;
|
Loading…
Add table
Add a link
Reference in a new issue