agrafix / agrafix/purescript-apparch

Passing channel to update function?

Đang mở
#1 5 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
PureScript
Star
18
Fork
0
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Mô tả

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.

Hướng dẫn đóng góp

Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này

Đánh giá

Issue này chưa được đánh giá.

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.