-
Notifications
You must be signed in to change notification settings - Fork 18
[Question] An idiomatic way to create an Invoice-like form. Should I use stores? #60
Comments
interesting.
|
I searched. No luck. |
@frederikhors there is an old issue here #15 which links to this fundamental change in svelte behavior https://github.com/svelte-society/recipes-mvp/pull/37/files and this code sample https://github.com/svelte-society/recipes-mvp/pull/16/files havent tried on your case but see if it helps |
@sw-yx thanks. I read everything. Your work in the community is truly amazing and it's a nice gesture in this sad world. Thanks for all your commitment. I remain skeptical and looking for answers regarding I'm loving Svelte, there must be a way to do this. 😄 |
Oh, I think I found. I'm using: Am I wrong? |
I think I can use Is there a way to use something like: |
doubt it, bc the updater function doesnt know that |
@sw-yx they answered here: sveltejs/svelte#5248 (comment). The solution is Shame on me. 😞 |
I'm trying my best to understand the idiomatic way to create an Invoice-like form with Svelte 3.
My REPL is here: https://svelte.dev/repl/7aca36569aea49bba38e5fb8b1b0835b?version=3.24.1.
QUESTIONS:
Is this a good way to do it? Should I use a store perhaps?
Is there a way to update amountDue when I change
qty
andprice
of my rows? (I know I can do it withrows = rows
but it seems to me a bit not-idiomatic way, am I wrong?)The text was updated successfully, but these errors were encountered: