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:
Thomas Gideon 2024-09-07 16:44:00 -04:00
parent 3d3b08caf1
commit a2c8a15d84
7 changed files with 113 additions and 23 deletions

1
sql/delete_series.sql Normal file
View file

@ -0,0 +1 @@
delete from series where id = $1;