Updating Redux state
We have several pages and forms where state is stored in Redux. This is very useful for back button navigation as it immediately shows the data from Redux state, plus we use Redux in our SSR implementation -- where no API call is made since it was already done by the server.
Unfortunately, this introduces some problems since the data on the server may already be updated or even removed and the UI does not even try to do a refresh.
For example: User opens /viability/result/{id} with no observations, then registers new observations (for this test), then clicks "View test" button to navigate back to /viability/result/{id}. Since the data is in Redux, there is no API call, and the data now displayed to the user does not reflect the status in the database.
In this ticket we are looking for solutions so that Redux state is properly updated or cleared (not set) and reducers properly react to changes -- especially when two reducers handle the same type of data.