You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current implementation of NewsPublisher and PostProcessor has a signature of (Action, Effect, State) -> T?, which can be somehow limiting, when you want to diff the previous and current state.
The common suggestion to update the signature to include the previous state, e.g. (State, Action, Effect, State) -> T?, which seems to be the best idea for now.
The text was updated successfully, but these errors were encountered:
ShikaSD
changed the title
Add a parameter with old state to NewsPublisher and PostProcessor
Access to old state to NewsPublisher and PostProcessor
Jun 24, 2019
Current implementation of
NewsPublisher
andPostProcessor
has a signature of(Action, Effect, State) -> T?
, which can be somehow limiting, when you want to diff the previous and current state.The common suggestion to update the signature to include the previous state, e.g.
(State, Action, Effect, State) -> T?
, which seems to be the best idea for now.The text was updated successfully, but these errors were encountered: