I'm following this tutorial <https://kotlinlang.or...
# javascript
o
I'm following this tutorial https://kotlinlang.org/docs/multiplatform-full-stack-app.html and I've finished the thing only issue is, if you scroll to the very bottom there's "Add some more features", among them is "cross out an item that's been clicked instead of deleting it with an API call" and below is my solution I am wondering why I must call the code on line 31 to trigger a reload, and why is line 32 not enough to trigger it? both are using state, do you think this is the best solution? The context around this code is exactly word for word all of what's in the tutorial before it https://paste.ofcode.org/323brzvkXy62yVqWZMmHb2w
t
Because it’s server calls 31 - delete on server 32 - load list from server
o
I’m not sure what happened with my paste but the lines I mean are now 35 and 36, 35 deletes the item from a state called deleted, that change should trigger a reload cause it touched a state no?
The line after that, where it gets the shopping list from the server, shouldn’t be required
t
If you will use
deleted
as filter it will work as you described