File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change @@ -128,9 +128,7 @@ function LoginForm({
128
128
error,
129
129
setError,
130
130
} : LoginFormProps ) {
131
- const [ login ] = useLoginMutation ( {
132
- refetchQueries : [ "SharedLayout" ] ,
133
- } ) ;
131
+ const [ login ] = useLoginMutation ( { } ) ;
134
132
const client = useApolloClient ( ) ;
135
133
const validateFields : (
136
134
fieldNames ?: Array < string > ,
@@ -153,8 +151,8 @@ function LoginForm({
153
151
} ,
154
152
} ) ;
155
153
// Success: refetch
156
- client . resetStore ( ) ;
157
154
resetWebsocketConnection ( ) ;
155
+ client . resetStore ( ) ;
158
156
Router . push ( onSuccessRedirectTo ) ;
159
157
} catch ( e ) {
160
158
const code = getCodeFromError ( e ) ;
Original file line number Diff line number Diff line change @@ -77,9 +77,7 @@ function RegistrationForm({
77
77
error,
78
78
setError,
79
79
} : RegistrationFormProps ) {
80
- const [ register ] = useRegisterMutation ( {
81
- refetchQueries : [ "SharedLayout" ] ,
82
- } ) ;
80
+ const [ register ] = useRegisterMutation ( { } ) ;
83
81
const client = useApolloClient ( ) ;
84
82
const [ confirmDirty , setConfirmDirty ] = useState ( false ) ;
85
83
@@ -110,8 +108,8 @@ function RegistrationForm({
110
108
} ,
111
109
} ) ;
112
110
// Success: refetch
113
- client . resetStore ( ) ;
114
111
resetWebsocketConnection ( ) ;
112
+ client . resetStore ( ) ;
115
113
Router . push ( onSuccessRedirectTo ) ;
116
114
} catch ( e ) {
117
115
const code = getCodeFromError ( e ) ;
You can’t perform that action at this time.
0 commit comments