MacFJA / svelte-persistent-store

A Svelte store that keep its value through pages and reloads
MIT License
244 stars 15 forks source link

Implement #60

Open st-clair-clarke opened 1 week ago

st-clair-clarke commented 1 week ago

Hi, This is more of a request than a bug.

Is it possible for you to implememnt Redux DevTools in svelte-persist-store. This would allow us to see the entire store at a glance. I find it very helpful during development.

Let me know what you think.

NB: I have looked at many svelte store and I have not seen this in any - yours would be the first.

I use Signalstory in my angular app, but now I am doing some work with svelte it is somthing I miss very much.

I have settled on your offering of svelte-store to use in my application.

Cheers

MacFJA commented 1 week ago

Hello,

I looked at what Redux Devtools do,
And it didn't match with what this library do (which is persisting store value for later use).

So I won't implement it inside this library.


But,

I made a library that will do only that: https://www.npmjs.com/package/@macfja/svelte-redux-devtools

It can track any Svelte Writable store.

So you can use it with this lib too:

import { writable } from "@macfja/svelte-persistent-store"
import { trackStores } from "@macfja/svelte-redux-devtools"

let name = writable("name", "John");
trackStores({ name });