agrafix / agrafix/purescript-apparch
Passing channel to update function?
Ouverte
- Langage dominant
- PureScript
- Étoiles
- 18
- Forks
- 0
- Métriques de merge des PR
- Aucune PR mergée en 30 j
Description
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.
Guide de contribution
Aucun guide de contribution indexé pour ce dépôt
Évaluation
Cette issue n'a pas encore été évaluée.