In update
I would like to call my Tick
Action every time Input
is called.
The scenario is that a user enters a value in a text field, on update the model is updated via Input
and then Tick
is called and more stuff is performed on the model.
In 0.16 I could do something like this :
Input query ->
({ model | query = query }, Effects.tick Tick)
Tick clockTime ->
-- do something with clockTime
I'm not sure how to do this in 0.17
.
I'm not sure if this would be a subscription
and if it were, how you could go about configuring it to call Input then Action.
Any help is appreciated.