UNPKG
rxdb-hooks
Version:
latest (6.0.0)
6.0.0
5.0.3
5.0.2
5.0.1
5.0.0
4.1.0
4.0.3
4.0.2
4.0.1
4.0.0
3.0.2
3.0.1
3.0.0
2.1.3
2.1.2
2.1.1
2.1.0
2.0.0
1.2.1
1.0.0
React hooks for integrating with RxDB
github.com/cvara/rxdb-hooks
cvara/rxdb-hooks
rxdb-hooks
/
src
/
context.ts
11 lines
(7 loc)
•
233 B
text/typescript
View Raw
1
2
3
4
5
6
7
8
9
10
11
import
{ createContext }
from
'react'
;
import
{
RxDatabaseBaseExtended
}
from
'./plugins'
;
export
interface
RxContext
{
db
:
RxDatabaseBaseExtended
|
null
; }
const
Context
= createContext<
RxContext
>(
null
);
export
default
Context
;