Skip to content

Commit

Permalink
add JS global so guides can enable memory only keys from JS console
Browse files Browse the repository at this point in the history
  • Loading branch information
marcaaron committed Jul 12, 2023
1 parent 105ba31 commit 377dae7
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/setup/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,13 @@ export default function () {
},
});

// When enabled we will skip persisting to disk any server-side downloaded objects (e.g. workspaces, chats, etc) that can hog up a user's resources.
window.enableMemoryOnlyKeys = () => Onyx.setMemoryOnlyKeys([
ONYXKEYS.COLLECTION.REPORT,
ONYXKEYS.COLLECTION.POLICY,
ONYXKEYS.PERSONAL_DETAILS_LIST,
]);

Device.setDeviceID();

// Force app layout to work left to right because our design does not currently support devices using this mode
Expand Down

0 comments on commit 377dae7

Please sign in to comment.