agrafix / agrafix/purescript-apparch

Passing channel to update function?

Aperta
#1 5 commenti 0 reazioni 0 assegnatari Vedi su GitHub
Lingua principale
PureScript
Stelle
18
Fork
0
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

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.

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.