Webapp settings
Would you have settings in a json object in a single store or a separate store writable for each setting?
44 Replies
what kinda of settings?
Probably just one writeable
#depends xD
well I have some for conditional logic for first render of the ui
Would probably depend how I'm saving the settings too š
yea should be ok with one writeable
massive massive alarmbells at a .exe in frontend code
please tell me that's only used to generate a command the user can then copy paste?
I think its a Tauri app
its a tauri app indeed
i use the .exe for conversion actions
as im not into writing binary magic in js
its not my exe also
ah, right, forgot that you were working on that
I would prefer to handle it on my own, but its a project for another day
so followup question, so would you subscribe to whole object in route level and pass specific parts of it as a prop to components or subscribe to the store in each component individually
I would use $ and in comps
Whole point of the global context is not to prop drill (least one point)
Pretty much always use the auto-sub syntax xD
https://learn.svelte.dev/tutorial/auto-subscriptions (click solve)
just so clean š„°
oh they do use the methods in those xD I just $store = value
or $store.thing = value
hmmm
Booleans for settings bad
shush
Baaad