sveltejs / sapper

The next small thing in web development, powered by Svelte
https://sapper.svelte.dev
MIT License
7.01k stars 435 forks source link

writable array of objects #1752

Closed apoorvamanjunath closed 3 years ago

apoorvamanjunath commented 3 years ago

Hello all, I want to make a few variables as writable in svelte. Instead of subscribing to them each one individually. I want to add all these into an object and make that object writable so that I can access them by just subscribing to the object. Currently, I am doing this find code here This works perfectly fine.

But when I try something like this. Find code here It is giving me an error. how can I solve this?

The whole idea is to take image URL and image bounds from the user in the Resetter component and use these values to plot a map in the App component.

I am very new to web development. Sorry if my question looks silly.

Thank you

Conduitry commented 3 years ago

GitHub issues aren't the right place for support questions like this. Please ask on StackOverflow or in our Discord chat room.