What is Nostr?
manlycoffee /
npub10nf…nycq
2023-05-31 15:53:36
in reply to nevent1q…e6wp

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));
}
Author Public Key
npub10nfk35k2u7h994dp5exj626lt9j28hhnwh0vtp6sqmmz5wwtdwwsl8nycq