What is Nostr?
hodlbod /
npub1jlr…ynqn
2025-02-17 21:52:08
in reply to nevent1q…ntvn

hodlbod on Nostr: The pattern is really weird in isolation, but it makes sense for use cases like ...

The pattern is really weird in isolation, but it makes sense for use cases like portals and modal dialogs.

It worked in svelte 4 because this is just how javascript works. It seems like svelte 5 is trying to re-implement garbage collection by undefining props on unmount. Svelte 4 just used javascript for state management — even though there was some compiler magic with stores that get `unsubscribe` called automatically, it was basically relying on the javascript VM's garbage collector to avoid memory leaks. I suspect something about runes makes this more difficult.
Author Public Key
npub1jlrs53pkdfjnts29kveljul2sm0actt6n8dxrrzqcersttvcuv3qdjynqn