diff options
Diffstat (limited to 'packages/merchant-backoffice-ui/src/components/form/FormProvider.tsx')
-rw-r--r-- | packages/merchant-backoffice-ui/src/components/form/FormProvider.tsx | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/packages/merchant-backoffice-ui/src/components/form/FormProvider.tsx b/packages/merchant-backoffice-ui/src/components/form/FormProvider.tsx index 7bcebd706..0d53c4d08 100644 --- a/packages/merchant-backoffice-ui/src/components/form/FormProvider.tsx +++ b/packages/merchant-backoffice-ui/src/components/form/FormProvider.tsx @@ -82,6 +82,12 @@ export interface FormType<T> { const FormContext = createContext<FormType<unknown>>(null!); +/** + * FIXME: + * USE MEMORY EVENTS INSTEAD OF CONTEXT + * @deprecated + */ + export function useFormContext<T>() { return useContext<FormType<T>>(FormContext); } |