Skip to content

Commit

Permalink
Merge pull request Expensify#28581 from margelo/osp/add-comment-about…
Browse files Browse the repository at this point in the history
…-report-metadata

Add small comment about REPORT_METADATA onyx key
  • Loading branch information
lakchote authored Oct 2, 2023
2 parents 299baf0 + 28651e9 commit 8232389
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/ONYXKEYS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,9 @@ const ONYXKEYS = {
POLICY_RECENTLY_USED_TAGS: 'policyRecentlyUsedTags_',
WORKSPACE_INVITE_MEMBERS_DRAFT: 'workspaceInviteMembersDraft_',
REPORT: 'report_',
// REPORT_METADATA is a perf optimization used to hold loading states (isLoadingReportActions, isLoadingMoreReportActions).
// A lot of components are connected to the Report entity and do not care about the actions. Setting the loading state
// directly on the report caused a lot of unnecessary re-renders
REPORT_METADATA: 'reportMetadata_',
REPORT_ACTIONS: 'reportActions_',
REPORT_ACTIONS_DRAFTS: 'reportActionsDrafts_',
Expand Down

0 comments on commit 8232389

Please sign in to comment.