From 3647bfdb12854382bfcb8c87a6553e6903232714 Mon Sep 17 00:00:00 2001 From: Petyo Ivanov Date: Wed, 27 Dec 2023 21:19:40 +0200 Subject: [PATCH] feat: export the react context instance --- src/index.ts | 7 +------ src/react.tsx | 4 ++++ 2 files changed, 5 insertions(+), 6 deletions(-) diff --git a/src/index.ts b/src/index.ts index be1d173..b3644d2 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,9 +1,4 @@ -/** - * This is the doc comment. - * Specify this is a module comm . - * @module gurx - */ export * from './realm' export * from './hooks' export * from './operators' -export { RealmProvider } from './react' +export { RealmProvider, RealmContext } from './react' diff --git a/src/react.tsx b/src/react.tsx index b1336b8..6c84849 100644 --- a/src/react.tsx +++ b/src/react.tsx @@ -1,6 +1,10 @@ import React from 'react' import { Realm } from './realm' +/** + * @category React Components + * The context that provides the realm to the built-in hooks. + */ export const RealmContext = React.createContext(null) /**