What is Nostr?
hodlbod /
npub1jlr…ynqn
2025-02-06 21:07:15
in reply to nevent1q…f88s

hodlbod on Nostr: The proxy stuff was one thing, all my events get copied when they get saved to ...

The proxy stuff was one thing, all my events get copied when they get saved to indexeddb, but since you can't detect proxies (except by copying them), there's no way to fix it in once place except try/catch every put operation. On top of that, the`$state.serialize` thing has to happen in a`.svelte` file. But I don't want to infect all my normal code with svelte stuff, I like to keep the two separated.

Other things:

- Reactivity has subtly changed. Stores don't see to be enough in every case. I've had to wrap a store in a`$derived` to get reactivity working.
- Reactivity is much more magical. Stores are extremely simple, but there's no way to dig in and debug runes.
- Runes also work the same way as react hooks do, which means implicit state based on when the variables are accessed or modified. This breaks timeouts, async functions, etc, and leads to hacks like`untrack`

It's not horrible, it's just... worse
Author Public Key
npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn