We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Type
Refactor
Current behaviour Our code gets quite repetitive
MkUserMsg subMsg -> if User.Api.unauthorized subMsg then update (MkUserMsg Logout) model else let ( updatedModel, cmd ) = User.Update.update subMsg model.userData in { model | userData = updatedModel } ! [ Cmd.map MkUserMsg cmd ] MkRankingMsg subMsg -> if Ranking.Api.unauthorized subMsg then update (MkUserMsg Logout) model else let ( updatedModel, cmd ) = Ranking.Update.update subMsg model.rankingData in { model | rankingData = updatedModel } ! [ Cmd.map MkRankingMsg cmd ]
Expected behaviour I think we could and we should make this flow more generic.
Motivation / use case refactor
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Type
Refactor
Current behaviour
Our code gets quite repetitive
Expected behaviour
I think we could and we should make this flow more generic.
Motivation / use case
refactor
The text was updated successfully, but these errors were encountered: