Egge on Nostr: Is not distributed and therefore not resilient enough. I just built the naive version ...
Is not distributed and therefore not resilient enough. I just built the naive version of the redux thing, and its pretty awesome.
Whenever relevant data changes it get encrypted and sent to nostr. On startup the app gets the latest state and rehydrates it's store. Right now it only does that on startup, but you could imagine syncing multiple devices with this too (however you would need to handle state merges in this case).
Published at
2024-10-19 05:17:10Event JSON
{
"id": "fcf4549f9c65f0e058c8fd0c854c4c58cb4b4052ffd29a046a4555555317bd91",
"pubkey": "ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe",
"created_at": 1729315030,
"kind": 1,
"tags": [
[
"e",
"e9e87562466c6ea0f4ac920b89970cc0e8b266b06f5e3ad973f0917cf968a0c8",
"",
"root"
],
[
"e",
"100a9388fe2b7e7efda0e59668b240689619d21b97c462f9d1f2a6642c9a1f40",
"",
"reply"
],
[
"p",
"ddf03aca85ade039e6742d5bef3df352df199d0d31e22b9858e7eda85cb3bbbe"
],
[
"p",
"6140478c9ae12f1d0b540e7c57806649327a91b040b07f7ba3dedc357cab0da5"
]
],
"content": "Is not distributed and therefore not resilient enough. I just built the naive version of the redux thing, and its pretty awesome. \n\nWhenever relevant data changes it get encrypted and sent to nostr. On startup the app gets the latest state and rehydrates it's store. Right now it only does that on startup, but you could imagine syncing multiple devices with this too (however you would need to handle state merges in this case).",
"sig": "10fff13b5156f792bab60a932709152fe2745bcc668bfefe4fb0a247eff9eb45c4ccbeb983227c10d67e0d96a98adda0bd9fb16ab8669c3f279d5e4bcac121cf"
}