What is Nostr?
PABLOF7z
npub1l2v…ajft
2023-07-12 14:58:09
in reply to nevent1q…g8c0

PABLOF7z on Nostr: omg! we have someone that actually knows svelte in nostr???! if I could follow you ...

omg! we have someone that actually knows svelte in nostr???!

if I could follow you more I would, but FOLLOWED!

what always trips me is the reactivity gotchas, I get the `a = a` when you want to trigger reactivity on an array/object, but sometimes I get weirdness with the reactivity beyond that.

For example, I have a /a/[naddr]/+page.svelte that just renders a <List {naddr> />

Is wrapping the <List {naddr} /> in a {#key naddr} the right way? Without the #key svelte wouldn't react to page changes with re-rendering the <List even though the {naddr} was changing

----

I'll probably run into other svelte weirdness without the next hour 😂 I'll add another response if that's cool 😀
Author Public Key
npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft