Closed tantaman closed 1 year ago
DB setup in main.tsx isn't the simplest thing in the world.
The strut project has several hooks to simplify DB creation and management --
https://github.com/tantaman/strut/tree/main/src/components/db
usage:
https://github.com/tantaman/strut/blob/main/src/Dashboard.tsx#L27-L29
port those over.
These have been added. https://github.com/vlcn-io/vite-starter/blob/71c370110b9ea67da56750249361a052d52047a6/src/App.tsx#L14
DB setup in main.tsx isn't the simplest thing in the world.
The strut project has several hooks to simplify DB creation and management --
https://github.com/tantaman/strut/tree/main/src/components/db
usage:
https://github.com/tantaman/strut/blob/main/src/Dashboard.tsx#L27-L29
port those over.