brianegan / flutter_redux

A library that connects Widgets to a Redux Store
MIT License
1.65k stars 219 forks source link

Receive the action that caused the state update in StoreConnector hooks #221

Open yuliswe opened 3 years ago

yuliswe commented 3 years ago

Hi, I was wondering if there's a way to receive the last action that produced the state in StoreConnector.ignoreChange?

Use case: This is for performance tuning. So we can ignore a part of the state update when we are sure that only a certain action can cause that part of the state to be changed. In this case, producing a new ViewModel could be skipped, because it is expensive.