brandonlilly / eventr

0 stars 0 forks source link

Invalidate cache only when state changes #6

Open brandonlilly opened 8 years ago

brandonlilly commented 8 years ago

The cache is invalidated whenever an action is dispatch, regardless of whether the state actually changed. This isn't a problem in our small application, but in a larger application with more action types it will be necessary to check if the relevant state has actually changed.