Dexie.js
Dexie.js copied to clipboard
Porting sample React Todo app to Svelte.
I am exploring best practice implementation of Dexie in a Svelte PWA.
Has anyone ported Dexie/samples/dexie-cloud-todo-app to Svelte?
I have neither ported the todo app over to Svelte nor am I sure that what I'm about to provide is best practices. However, I've been working on an app that uses both Svelte and Dexie. The code is freely available at https://github.com/Dilden/helth.
Code relevant to Dexie is located in src/stores/db.js
and src/stores/stores.js
is where the various DB manipulations are abstracted into Svelte stores. These values can be retrieved from these stores throughout the application by prepending the store names with a $
.