how to use solid router with tauri and a sqlite database
I am making a Tauri app that has a pretty basic database to hold lists and projects created by the user. I currently have a singleton database class with functions for database actions like this:
and then I have been calling this in my components by doing something like this:
This has worked so far but I feel like there has got to be a way to use solid router functions like
and then I have been calling this in my components by doing something like this:
This has worked so far but I feel like there has got to be a way to use solid router functions like
createAsync, action, and query to do this better but I am not really familiar with these at all. How can I set this stuff up to have better usage in my components? Right now, I'm hitting some complications trying to have a list of projects that I fetch and display with a <For each={projects} /> but I can't figure out how to do refetching and stuff in a good way.