Open tiagoefreitas opened 1 year ago
It would be awesome to make a svelte adapter. You can see a vanilla js app here https://codepen.io/jchrisa/pen/RwePPZg
The only react code is in the use-fireproof
npm module, @fireproof/core
don't care about react.
If you want to duplicate the live-query functionality you can see how it's based on useState and useEffect in the 32-line implementation here: https://github.com/fireproof-storage/fireproof/blob/d6751832f1d1cc08d9ff52c20e50d200b691611f/packages/react/src/hooks/useFireproof/index.ts#L142
I'd love to see a svelte adapter, I haven't written enough svelte to have strong opinions on how it should look. What is the best live-query style API in that world?
Can I use this with Svelte (including livequeries) or only useful for react apps?
What are the dependencies on react?
Thanks