cesardias on Nostr: I use mobx for proxy based reactivity, and I never had to worry about any of this, I ...
I use mobx for proxy based reactivity, and I never had to worry about any of this, I can pass observable state anywhere I want without a thought, the only time I remember I am dealing with proxies is when I log proxy objects into the console, reactivity in mobx only happens when you wrap things in a autorun(), reaction() or a observer() (in case of a react component), proxies can also be disabled in mobx which is useful in some environments that don't support it, in that case it will default to Object.defineProperty hacks, don't know exactly
Published at
2025-02-04 14:53:32Event JSON
{
"id": "b4208e84a2f471d3378280b4bdab1f4920fdbef8f93e17fb2ed7bc9f3af9cbe6",
"pubkey": "c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e",
"created_at": 1738680812,
"kind": 1,
"tags": [
[
"e",
"011e091a45bb5ea240f56c7e1376a58f87d70c1a42cec7be54b891db76b5522a",
"wss://nos.lol",
"root",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322"
],
[
"p",
"97c70a44366a6535c145b333f973ea86dfdc2d7a99da618c40c64705ad98e322",
"wss://hodlbod.coracle.tools/inbox"
],
[
"client",
"nosotros",
"31990:c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e:1728437063755"
]
],
"content": "I use mobx for proxy based reactivity, and I never had to worry about any of this, I can pass observable state anywhere I want without a thought, the only time I remember I am dealing with proxies is when I log proxy objects into the console, reactivity in mobx only happens when you wrap things in a autorun(), reaction() or a observer() (in case of a react component), proxies can also be disabled in mobx which is useful in some environments that don't support it, in that case it will default to Object.defineProperty hacks, don't know exactly",
"sig": "b897fb9a07e713d194afaa86fd7e0667fc58ca65648bf70e49e49754843ac936804696e6e19304a7d9a3d0004f56398bbf3bd7b56014d2ab6635ee38b808daa2"
}