manlycoffee on Nostr: npub1ldk3l…s5msg I don't really see the relevance to the discussion of tying state ...
npub1ldk3lajhsvstz8vjxa4avv6utvnlv8a8ujt4ykpes0p7ggeevyssus5msg (npub1ldk…5msg) I don't really see the relevance to the discussion of tying state management to I/O.
Bottom line is, having something very similar to `dispatch(actionCreator())` sending off an XHR/fetch request just feels a bit iffy.
Ultimately, when handling click events, I just write functions, and invoke those
async function () {
dispatch(loadingAction());
const result = (await axios.get(url)).data;
dispatch(loadedAction(data));
}
Published at
2023-05-31 15:53:36Event JSON
{
"id": "73639684cc58f1a3b353f081c6e5b7e1e5f54d11b1ded999dd3dbe757da382ce",
"pubkey": "7cd368d2cae7ae52d5a1a64d2d2b5f5964a3def375dec5875006f62a39cb6b9d",
"created_at": 1685548416,
"kind": 1,
"tags": [
[
"p",
"fb6d1ff6578320b11d92376bd6335c5b27f61fa7e49752583983c3e423396121",
"wss://relay.mostr.pub"
],
[
"p",
"650f1ea8ded4e89cd4bd440688bb810ad756c7be3e3051caed2fa6eef0cbc38c",
"wss://relay.mostr.pub"
],
[
"e",
"f666565d1d3877634fd8cb832dcb3312b310c15d3cf77d369a15586c163de428",
"wss://relay.mostr.pub",
"reply"
],
[
"mostr",
"https://techhub.social/users/manlycoffee/statuses/110464100995659549"
]
],
"content": "nostr:npub1ldk3lajhsvstz8vjxa4avv6utvnlv8a8ujt4ykpes0p7ggeevyssus5msg I don't really see the relevance to the discussion of tying state management to I/O.\n\nBottom line is, having something very similar to `dispatch(actionCreator())` sending off an XHR/fetch request just feels a bit iffy.\n\nUltimately, when handling click events, I just write functions, and invoke those\n\nasync function () {\n dispatch(loadingAction());\n const result = (await axios.get(url)).data;\n dispatch(loadedAction(data));\n}",
"sig": "e93877a230526a6c58ca5f91c8383bd235a943adbb890d0c127939d24249d0023302d1c065ed5fd93dc8f1ce3c4e3fe13fede1fc9930e3bffc8523e0e189042f"
}