Dominic Gannaway

Results 317 comments of Dominic Gannaway

We do this intentionally, if you want to mark a variable something as reactive, it must be `$state`.

> I'm getting something similar when using the class `$state` properties set by `onblurcapture` and other events. > > Stacktrace for reference: ![CleanShot 2024-10-18 at 21 12 20@2x](https://private-user-images.githubusercontent.com/64506580/378039196-b820ed60-df4d-4df8-8a27-d6f5f3192c80.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjkzMzQ2MjksIm5iZiI6MTcyOTMzNDMyOSwicGF0aCI6Ii82NDUwNjU4MC8zNzgwMzkxOTYtYjgyMGVkNjAtZGY0ZC00ZGY4LThhMjctZDZmNWYzMTkyYzgwLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDEwMTklMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQxMDE5VDEwMzg0OVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTIwYzc2ZTJhNzc1NWEwNzUwYjA2YWI0ODYxNmM0ZDZmOTM2YzZmYWZmNjE0MWVjZWZjNjBlOGQ1NjE5MWVmMWUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.ZgApCpFLXPQWUIkvZ3ohcUALsp4dm_dTrfWZTcT_YWw) > >...

@kyle-leonhard Looks like Svelte is moving the DOM element using `element.before(target)` in the each block, and somehow that invokes `HTMLTableRowElement.target_handler`. What is that handler hooked up to event wise? It...

> > @kyle-leonhard Looks like Svelte is moving the DOM element using `element.before(target)` in the each block, and somehow that invokes `HTMLTableRowElement.target_handler`. What is that handler hooked up to event...

I put up a PR that should hopefully resolve this if merged https://github.com/sveltejs/svelte/pull/14016

> i think its still not in 5.2.10? post-poning my migrations until then. It was released a while ago. Does it still affect you on the latest version?

@m-poh You can't mutate state in a derived and we only detect it at runtime as reactivity is runtime driven. We might be able to detect some obvious cases at...

I honestly don't think we should do this – and I have a ton of experience in this field having seen how first-hand this mismatch hell caused all sorts of...

I wonder if the correct solution is that we have a better API for these cases, see https://github.com/sveltejs/svelte/issues/14337.