Skip to content

Commit

Permalink
commenting the new variable
Browse files Browse the repository at this point in the history
  • Loading branch information
gedu committed Nov 16, 2023
1 parent 0a578dd commit 8bb02a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pages/home/report/ReportActionsList.js
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ const newActionUnsubscribeMap = {};
// internal states are resetted or recreated.
const cacheUnreadMarkers = new Map();

// Seems that there is an architecture issue that prevents us from using the reportID with useRef
// the useRef value gets reset when the reportID changes, so we use a global variable to keep track
let prevReportID = null;

/**
* Create a unique key for each action in the FlatList.
* We use the reportActionID that is a string representation of a random 64-bit int, which should be
Expand Down

0 comments on commit 8bb02a4

Please sign in to comment.