Alexander Prinzhorn
Alexander Prinzhorn
> Since it's not recommended to run DB tasks on the renderer process in the first place, I think it's unnecessary to test that scenario. Agreed, definitely only run tests...
> I came across several projects, that use a hidden browser window for decoupling the persistence layer from the main process I use a Worker Thread spawned from main to...
In addition to what @webJose said see https://github.com/sveltejs/svelte/issues/13306 for related discussion (https://github.com/sveltejs/svelte/issues/13306#issuecomment-2358591827) "Solution" is to use `$derived` https://svelte.dev/playground/hello-world?version=5.1.2#H4sIAAAAAAAAA22PwQqDMBBEfyWEHhRKpB6tCv2OmEPUbQ2NMSSrtEj-vcYe6qGXZXfezMCu9K40eFrwleLbAi12gZ6pkWO8btYyv4DGqLXSwz-9mwyCwa2Glr5zymLdmAY1IJHOXUhFTh4lQsJFej2QPJIenFqgT6Iz0jL7VZiynREnQybTadU9qzVJSVXvrczOfthTTIN54JCGWvY9UQhjmX1zdWxw24y2gvCVM8biLoI4oPyA8h1tTyG8kBboZggifABrk329KAEAAA==
~Never mind, this actually looks like a bug:~ See edit https://svelte.dev/playground/hello-world?version=5.1.2#H4sIAAAAAAAAA22PwQrCMBBEfyUEDy1I1B5rW_A7Yg5pXbWYpiHZihLy7yYtYg9eltmZtwPr6bVX4GjJPcW3AVrOBt1SLYe0nYxh7gkKk9dKB__8btQIGmMNrVxne4PNWZ9RARJp7YHUZONQImRc5MdVUsQkAdGrdr9DXbUT4qjJqDvVd4_aZzmpmxllZnL3bFYK9A3veWjk5UJ6hKHaLXdNarBxJqwk3HPGWNIiCOKT4HsRVlCxgoovVCxQfA_hhbREO0EQ4QNj2GMXMgEAAA== Why would adding `{arr2[0]}` make the entire `arr2` reactive? Edit: OHHHHHHH, because it's the same text node. So it's...
> but I think it shouldn't. I think that's fundamentally how runes work, from what I understand. Compiler does not know `arr2` is reactive. You need to mark it as...
Your REPL is not in runes mode, I think this makes a big difference when discussing reactive behavior.
Did you see https://github.com/sveltejs/svelte/issues/6942 I've linked? If actions aren't reactive, what's the point of supporting nullish actions? That's a noop. If the prop later changes to non-nullish, the action will...
Fair point, but to me that sounds like a footgun though when we support nullish actions but you cannot update them. But on the other hand the problem already exists...
You can already trim this down by using `children`: https://svelte-5-preview.vercel.app/#H4sIAAAAAAAAA7WVYW_bNhCG_8pVLWAbsE0nxYpWs4O1-zRgn7ah-1AVBS3S0tUUSZBUFEPwf9-RspM48QJ3wADD1onvezw-pI99tkElfZZ_6TPNG5nl2Udrs2kWdjYG_laqICn2pnVlfLP0pUMbbgoNgI01LsCvNVrYONPAaM5iMB9so0Iv2b280P1rr9FaGQBLo8elUcbBCorMSVFkkz1pwtLfVnCLsvtk7lZFtoAFXL2jT5HBXaO0p3d1CDZnrOu6efd2blzFrheLBSMjiToUoSZRdMRJA8CyRFcqCWVM-J405e7w4A6_xECt-lTPniXXMqajp54dSt6fLsA6E8GNW6fSCmJNnopqrTJczDvcYiMF8lRejGyMWGmaxmjPrtjVmv2ZIH373VRmnoo_EMCmAu_KVU_J9ycLglpiVYdjxFV8tBtbZOxZrctXsxkwBn_XPMBvEGrUW8Aw8oBCcpXDeN0GEEZ6PQrQGbedJFvaTMXXUlHuv6QPNFHMfjrwSbWSBtIaV33azsn-ueyPuLEnqtGanKNz2gHHg_yI-Jz2c3tGOPrBTfjAPvzEKNP8u0-b8O06bsOhttns5jHFj1Sa0zwgFbmbwvfWB1C4lVCbDobTDpZ7D5tWlwEpff6faY4nsLqBy5g-0l5OdjBdzPdU_n9STme1k6ClFBAMnU76FnxHh3WLWnBYczGBo-nf2J6nm_7W_S9OaiHdKbHYpqLjjDfBPmN90XTkfep74P2C9fPzUo--H24y58kPbeZxAT7slExz0vAUYvvpY1QEgd6qiB-1Qi1nGyXvfh6GGu4q1DMX-1EO7-3wPmUe8tGd0RiBG5Qiy4Nr5X56f8XEuS-9YxR1237gM4WyRiWIC-yp674hMtaPJ09umaXAWygV_RmJJxnsU6DHJOOh3_Ypd6qcnE-RzGOGIw-usNIzDLLxOZRSU0844FgbR6lz8EahgCt7B5Xju5PBmeMCW_8A60W-Q6fP4e31vdpyIVBXOV2JF_H-uv8HWgimot4HAAA= But nevertheless an argument could be made for a `snippet.bind()` function.
Sorry I deleted my original comment. What exactly is broken here, there is no `[data-active='true']` only `[data-active='false'] `? https://svelte.dev/playground/hello-world?version=5.1.12#H4sIAAAAAAAAA42QwW6DMBBEf2XlS1qpwJ0mSL3lH-IcHHtBVhcb2QtthPj32k4OjZRKPWFmZ-atdhVOjShacUQiD18-kIEXNJbRvIo30VvCKNrTKvg6ZV8Wkn5PfUxTHRckztpFRXyma-8YHacasY862ImBlBsOUnCUopMOoGlAun1zmyYl_Ri7gCYVY_L15BVbN1QjulkKMIpVpTTbBQ9rrygiqAgcZtxymB_C2o-jcqZkK_ae2E4Fm3xNMnaZfPumV-QrYdmpfqCefjN3hbk7Qwf1s3pYcwHARenPIfg5jbUnH1oIaN7zbMuw_zHWvKnkv7okb-V0973TvRm_WbTlGuftB3pYmw_hAQAA This is not a boolean attribute so the value is stringified.