hzrd149 on Nostr: Composing loaders maybe get very complicated because of caching and batching ...
Composing loaders maybe get very complicated because of caching and batching requests. But if they are customizable enough then it should be possible. I don't know yet because I still need to figure out how to get batching to work
For using them in the UI, the idea would be for the UI components to trigger them, but still use the event store as the source of truth
Published at
2025-05-16 00:52:58Event JSON
{
"id": "871f8650335b73aa7274115af96654fd35e61994b16788b037ea303d87c036c2",
"pubkey": "266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"created_at": 1747356778,
"kind": 1,
"tags": [
[
"e",
"2e020d9adfb7aa0740a263c37c56999413af0f2ae34dd6e2b6d672b9ea51aad9",
"wss://nos.lol",
"root",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5"
],
[
"e",
"a778b3df17d868e176f29d0aeeb91e4dcea5d13ab8237274381142fcc52b4cb7",
"wss://relay.damus.io/",
"reply",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
],
[
"p",
"266815e0c9210dfa324c6cba3573b14bee49da4209a9456f9484e5106cd408a5",
"wss://nostrue.com"
],
[
"p",
"c6603b0f1ccfec625d9c08b753e4f774eaf7d1cf2769223125b5fd4da728019e"
]
],
"content": "Composing loaders maybe get very complicated because of caching and batching requests. But if they are customizable enough then it should be possible. I don't know yet because I still need to figure out how to get batching to work\n\nFor using them in the UI, the idea would be for the UI components to trigger them, but still use the event store as the source of truth ",
"sig": "26d66c8f9cde47e24112991755977196502598427ad838dbbaf456a5e05b82a3e093cfe4a02ffd5135a20f5d0d388f1b09837eb747d5fe53f5f9e5113ceba2f8"
}