From 41daeef176c1ca2d5aec3f318c9cac6dffe15c1d Mon Sep 17 00:00:00 2001 From: Jasper Huang Date: Fri, 5 Apr 2024 12:00:01 -0700 Subject: [PATCH] Merge pull request #39753 from bernhardoj/fix/39710-options-data-cache-is-persisted-after-log-out Fix report and personal detail options are persisted after switching account (cherry picked from commit 4e11f41cb72766b3e9585f0d023d072d45ecf244) --- src/App.tsx | 2 - .../Navigation/AppNavigator/AuthScreens.tsx | 134 ++++++++++++++++++ 2 files changed, 134 insertions(+), 2 deletions(-) diff --git a/src/App.tsx b/src/App.tsx index 61874dc72fb0..a3a9f7a3f3b6 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -16,7 +16,6 @@ import HTMLEngineProvider from './components/HTMLEngineProvider'; import InitialURLContextProvider from './components/InitialURLContextProvider'; import {LocaleContextProvider} from './components/LocaleContextProvider'; import OnyxProvider from './components/OnyxProvider'; -import OptionsListContextProvider from './components/OptionListContextProvider'; import PopoverContextProvider from './components/PopoverProvider'; import SafeArea from './components/SafeArea'; import ScrollOffsetContextProvider from './components/ScrollOffsetContextProvider'; @@ -83,7 +82,6 @@ function App({url}: AppProps) { FullScreenContextProvider, VolumeContextProvider, VideoPopoverMenuContextProvider, - OptionsListContextProvider, ]} > diff --git a/src/libs/Navigation/AppNavigator/AuthScreens.tsx b/src/libs/Navigation/AppNavigator/AuthScreens.tsx index 463dcfcd9e99..6fd851ba61f0 100644 --- a/src/libs/Navigation/AppNavigator/AuthScreens.tsx +++ b/src/libs/Navigation/AppNavigator/AuthScreens.tsx @@ -2,6 +2,11 @@ import React, {memo, useEffect, useRef} from 'react'; import {View} from 'react-native'; import type {OnyxEntry} from 'react-native-onyx'; import Onyx, {withOnyx} from 'react-native-onyx'; +<<<<<<< HEAD +======= +import OptionsListContextProvider from '@components/OptionListContextProvider'; +import useOnboardingLayout from '@hooks/useOnboardingLayout'; +>>>>>>> 4e11f41 (Merge pull request #39753 from bernhardoj/fix/39710-options-data-cache-is-persisted-after-log-out) import useStyleUtils from '@hooks/useStyleUtils'; import useThemeStyles from '@hooks/useThemeStyles'; import useWindowDimensions from '@hooks/useWindowDimensions'; @@ -261,6 +266,7 @@ function AuthScreens({session, lastOpenedPublicRoomID, initialLastUpdateIDApplie }, []); return ( +<<<<<<< HEAD +======= + + + + + + + + + + + + + + + + + + + + + + + + +>>>>>>> 4e11f41 (Merge pull request #39753 from bernhardoj/fix/39710-options-data-cache-is-persisted-after-log-out) ); }