You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

16 lines
507 B

import * as React from 'react';
// TODO: Remove in antd v5
export const BugContext = React.createContext<{
unControlChange?: boolean;
}>({});
export interface BugContextProviderProps {
children?: React.ReactNode;
}
/** @deprecated Make Upload temp ignore control status when `onChange` is trigger as `uploading` */
export default function BugContextProvider({ children }: BugContextProviderProps) {
return <BugContext.Provider value={{ unControlChange: true }}>{children}</BugContext.Provider>;
}