What is Nostr?
buttercat1791 / Michael J
npub1wqf…qsyn
2025-02-18 01:45:22
in reply to nevent1q…9x8n

buttercat1791 on Nostr: Dang. Interestingly, I did try putting a `const newValue = value` inside the callback ...

Dang.

Interestingly, I did try putting a `const newValue = value` inside the callback body in your example, and even that didn't work.

It seems like the Svelte compiler should undefine functions in component bodies, to be thorough, since those functions lose their captured context. Then everything in a component would be tied to its lifecycle, not just some things.

Maybe doing that with functions has other problems, though.
Author Public Key
npub1wqfzz2p880wq0tumuae9lfwyhs8uz35xd0kr34zrvrwyh3kvrzuskcqsyn