opensas
opensas
don't worry @pngwn , there's no rush, really, thanks a lot
Very clever indeed. You avoid declaring a filteredTodos by calling the function from the each loop. I modified my own example to get rid of FfilteredTodos and instead call: ```html...
I think the issue is very well explained here: https://github.com/svelte-society/recipes-mvp/blob/master/language.md#variables-not-values > In this example, when we reassign o.num we are updating the value assigned to obj but since we are...
I get it, React doesn't even try to understand what our code is doing. It's logic that we are facing very different problem. On Fri, Jun 5, 2020 at 4:39...
I've just found this todo app example, it goes [like this](https://github.com/seeschweiler/svelte-todo-app/blob/master/src/Todos.svelte#L62) to avoid duplicated object references: ```javascript function handleToggleComplete(event) { const todoIndex = todos.findIndex(todo => todo.id === event.detail.id); const updatedTodo...
absolutely worth considering, of course. Just one question, if I update the whole array only the modified items will be re-rendered, right? anyway, I think the best workaround so far...
> Absolutely. Object references are probably the biggest foot gun is Svelte’s reactivity system. We should come up with some common workarounds for different cases. I've just stumbled upon [this...
@tanhauhau > whether to fallback onto change detection in the runtime for mutable objects / arrays, or will only do as much as we can during compile time Can't we...
Thanks a lot @dimfeld, super clear explanation. About other way to detect object/arrays changes: I got inspiration from this @tanhauhau 's twit: https://twitter.com/lihautan/status/1284666320970084353 And built this quick and dirty [codesanbox](https://codesandbox.io/s/fix-svelte-object-references-gotchas-with-vue-reactive-watch-99s49?file=/App.svelte:869-874)...
I also like the idea of being able to define custom-script to be run, but I understand the security concerns. I agree that it would probable be better to create...