Skip to content

Commit 122a455

Browse files
committed
chore: export context for external usage
1 parent 663b719 commit 122a455

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/index.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import List from './List';
55
import useForm from './useForm';
66
import FieldForm, { FormProps } from './Form';
77
import { FormProvider } from './FormContext';
8+
import FieldContext from './FieldContext';
9+
import ListContext from './ListContext';
810

911
const InternalForm = React.forwardRef<FormInstance, FormProps>(FieldForm) as <Values = any>(
1012
props: React.PropsWithChildren<FormProps<Values>> & { ref?: React.Ref<FormInstance<Values>> },
@@ -25,6 +27,6 @@ RefForm.Field = Field;
2527
RefForm.List = List;
2628
RefForm.useForm = useForm;
2729

28-
export { FormInstance, Field, List, useForm, FormProvider, FormProps };
30+
export { FormInstance, Field, List, useForm, FormProvider, FormProps, FieldContext, ListContext };
2931

3032
export default RefForm;

0 commit comments

Comments
 (0)