Commit eb27a848 authored by Stefan Probst's avatar Stefan Probst
Browse files

fix: check if updating react-toastify fixes race condition

parent 59dd2abc
......@@ -207,10 +207,7 @@ export function AuthProvider(props: AuthProviderProps): JSX.Element {
const validateIdTokenMeta: MutationMetadata = {
messages: {
mutate() {
// return t(['common', 'auth', 'signing-in'])
// FIXME: never gets updated with success message (at least in firefox), although
// toast.update is called with the correct toast id.
return false
return t(['common', 'auth', 'signing-in'])
},
success() {
return t(['common', 'auth', 'sign-in-success'])
......
......@@ -87,7 +87,6 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
closeButton: null,
closeOnClick: null,
draggable: null,
delay: 100, // Work around one of the race conditions in `react-toastify`.
})
}
},
......@@ -117,7 +116,6 @@ export function createQueryClient(defaultErrorMessages: DefaultErrorMessageMap):
closeButton: null,
closeOnClick: null,
draggable: null,
delay: 100, // Work around one of the race conditions in `react-toastify`.
})
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment