diff options
Diffstat (limited to 'src/view/com/testing/TestCtrls.e2e.tsx')
-rw-r--r-- | src/view/com/testing/TestCtrls.e2e.tsx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/view/com/testing/TestCtrls.e2e.tsx b/src/view/com/testing/TestCtrls.e2e.tsx index 489705d10..5e9d816ac 100644 --- a/src/view/com/testing/TestCtrls.e2e.tsx +++ b/src/view/com/testing/TestCtrls.e2e.tsx @@ -3,6 +3,7 @@ import {Pressable, View} from 'react-native' import {useStores} from 'state/index' import {navigate} from '../../../Navigation' import {useModalControls} from '#/state/modals' +import {useQueryClient} from '@tanstack/react-query' import {useSessionApi} from '#/state/session' /** @@ -15,6 +16,7 @@ const BTN = {height: 1, width: 1, backgroundColor: 'red'} export function TestCtrls() { const store = useStores() + const queryClient = useQueryClient() const {logout, login} = useSessionApi() const {openModal} = useModalControls() const onPressSignInAlice = async () => { @@ -83,7 +85,7 @@ export function TestCtrls() { /> <Pressable testID="e2eRefreshHome" - onPress={() => store.me.mainFeed.refresh()} + onPress={() => queryClient.invalidateQueries({queryKey: ['post-feed']})} accessibilityRole="button" style={BTN} /> |