pets-oss / pets-front

Pets Information System Front-end
MIT License
4 stars 36 forks source link

After Animal image is added, the animal list should update #215

Open saulyz opened 2 years ago

saulyz commented 2 years ago

When an animal image is added on the animal details page, the Redux store does not get any notification that some animal has its image updated. AnimalCard component gets animal data the same as previously (without an image or an old image).

The easiest way is to dispatch a re-fetch command to get the new animal list data of the last query, or mark that existing animal list data is outdated.

The harder way is to force that one record to update, which may be too complex to implement in this stage.