S
SolidJS5mo ago
Dakotys

What's the correct way to make store persistent?

I am making some sort of widget manager and i have no control over how many options/ styles will the widget have so the store can reach size of around 30KB and more. I am making the store persistent using solid-primitive but I am not sure if it is right approach since there is no option for debouncing and for example when i am dragging the widget, the store updates => the widget's jsx updates, but the whole store is stored in localstorage without debounce. I am not sure if i should make separate store for each widget and also add createEffect that would somehow debounce the change to main store or maybe make them each a separate persistent stores? Or is the store not that big and I don't have to worry about it?
0 Replies
No replies yetBe the first to reply to this messageJoin
Want results from more Discord servers?
Add your server