Dexie.js icon indicating copy to clipboard operation
Dexie.js copied to clipboard

Porting sample React Todo app to Svelte.

Open LarryEitel opened this issue 1 year ago • 1 comments

I am exploring best practice implementation of Dexie in a Svelte PWA.

Has anyone ported Dexie/samples/dexie-cloud-todo-app to Svelte?

LarryEitel avatar Dec 14 '23 18:12 LarryEitel

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 $.

Dilden avatar Jan 26 '24 20:01 Dilden