Skip to content

Commit

Permalink
Modify comment for personalDetailsMetadata
Browse files Browse the repository at this point in the history
  • Loading branch information
tienifr committed Mar 26, 2024
1 parent e263ba4 commit 17f18e7
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/ONYXKEYS.ts
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,11 @@ const ONYXKEYS = {
/** Contains all the private personal details of the user */
PRIVATE_PERSONAL_DETAILS: 'private_personalDetails',

/** PERSONAL_DETAILS_METADATA is a perf optimization used to hold loading states. For more explanation, see REPORT_METADATA. */
/**
* PERSONAL_DETAILS_METADATA is a perf optimization used to hold loading states of each entry in PERSONAL_DETAILS_LIST.
* A lot of components are connected to the PERSONAL_DETAILS_LIST entity and do not care about the actions.
* Setting the loading state directly on the personal details entry caused a lot of unnecessary re-renders.
*/
PERSONAL_DETAILS_METADATA: 'personalDetailsMetadata',

/** Contains all the info for Tasks */
Expand Down

0 comments on commit 17f18e7

Please sign in to comment.