Replies: 1 comment
-
You cannot change a constant. You need a store object and you can change the properties. This is the example from the Svelte website:
Then use it like this:
You could create a config store with a config property and set it like |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
store.svelte.ts
cmp.svelte
I want to reassign the config to a new value, I don't want to assign config properties separately. With traditional stores you can do config.set({ ... }) but that ability is being deprecated apparently. Thank you.
Beta Was this translation helpful? Give feedback.
All reactions