Skip to content
2 changes: 1 addition & 1 deletion src/libs/actions/App.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ const KEYS_TO_PRESERVE: OnyxKey[] = [
ONYXKEYS.COLLECTION.DEVICE_BIOMETRICS,
ONYXKEYS.STASHED_SESSION,
ONYXKEYS.STASHED_CREDENTIALS,

ONYXKEYS.NVP_LAST_DISMISSED_MARKETING_WINDOW,
// Preserve IS_USING_IMPORTED_STATE so that when the app restarts (especially in HybridApp mode),
// we know if we're in imported state mode and should skip API calls that would cause infinite loading
ONYXKEYS.IS_USING_IMPORTED_STATE,
Expand Down
4 changes: 4 additions & 0 deletions src/libs/actions/Delegate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,10 @@ const KEYS_TO_PRESERVE_DELEGATE_ACCESS = [
ONYXKEYS.STASHED_CREDENTIALS,
ONYXKEYS.HYBRID_APP,

// Otherwise it's wiped and refetched by OpenApp, letting the product-marketing window flash back in
// before the dismissal value round-trips back from the server.
ONYXKEYS.NVP_LAST_DISMISSED_MARKETING_WINDOW,

// We need to preserve the sidebar loaded state since we never unmount the sidebar when connecting as a delegate
// This allows the report screen to load correctly when the delegate token expires and the delegate is returned to their original account.
ONYXKEYS.RAM_ONLY_IS_SIDEBAR_LOADED,
Expand Down
Loading