uaem-na / donations-tracker

General-purpose distribution platform developed for the McGill chapter of the Universities Allied for Essential Medicine.
https://donations-tracker-dev.uaem.org
8 stars 1 forks source link

"x Reports Outstanding" Token Not Updating in "Manage Reported Posts" Table #88

Closed shjryan closed 6 months ago

shjryan commented 10 months ago

Description

There is a bug where the "x Reports Outstanding" token in the "Manage Reported Posts" table is not updating as expected. To resolve this issue, it's necessary to invalidate the RTK Query cache, triggering an update of this token. image

Issue Details

  1. Manage Reported Posts Table: The "Manage Reported Posts" table displays the number of reports outstanding, indicating how many reports need attention.

Expected Behavior

The "x Reports Outstanding" token should update in real-time as reports are processed. This ensures that administrators have an accurate and up-to-date view of pending reports.

Additional Context

An outdated token can lead to confusion and a lack of clarity for administrators regarding the number of reports that require attention. Invalidating the RTK Query cache is a necessary step to ensure real-time updates.

Acceptance Criteria

Implementation Guidelines: