agrafix / agrafix/purescript-apparch

Passing channel to update function?

未关闭
#1 5 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
PureScript
星标
18
派生
0
PR 合并指标
30 天内没有已合并 PR

描述

Let's say I need to send an action to the channel from another action using async callbacks? The use case is trigging an ajax call using affjax from an action, then attempting to trigger another action to update state. This doesn't seem possible because Aff monad does not wrap the value of the callback, but unit instead.

Another use case is triggering multiple actions from another action.

What are you thoughts on passing the channel to the update function? That way actions could send actions.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。