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.
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.