On Wed, Oct 12, 2016 at 6:50 PM, Fa Qing <[email protected]> wrote:
> Goal
> [AppRoot] -> [UsersPage] --> ask api for users, and upon success,
> 1. send the UsersFetchSuccess message (attaching the users); so far so
> good, but then also I need to...
> 2. replace the token by sending the BumpToken message at the root level of
> the app.
>
I would approach this by making UserFetchSuccess incorporate the token.
type Msg
= UserFetchSuccess Token UserData
and handle the bumping of the token afterwards by maybe extending the
update signature with a Maybe Token
--
There is NO FATE, we are the creators.
blog: http://damoc.ro/
--
You received this message because you are subscribed to the Google Groups "Elm
Discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/d/optout.