♻️(frontend) support mutation status in QueryAware component
useMutation has one more possible status, 'idle'. I was forced to add it to avoid any Typescript error.
This commit is contained in:
committed by
aleb_the_flash
parent
55749a9565
commit
23a2d3bcac
@@ -13,7 +13,7 @@ export const QueryAware = ({
|
|||||||
status,
|
status,
|
||||||
children,
|
children,
|
||||||
}: {
|
}: {
|
||||||
status: 'error' | 'pending' | 'success'
|
status: 'error' | 'idle' | 'pending' | 'success'
|
||||||
children: React.ReactNode
|
children: React.ReactNode
|
||||||
}) => {
|
}) => {
|
||||||
if (status === 'error') {
|
if (status === 'error') {
|
||||||
|
|||||||
Reference in New Issue
Block a user