Skip to content

Commit 942387d

Browse files
committed
export init and client from react bindings
1 parent bf50e8e commit 942387d

File tree

3 files changed

+12
-11
lines changed

3 files changed

+12
-11
lines changed

src/client/react/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
export * from 'client';
2+
13
export * from 'client/react/hooks';
24
export {
35
SigmaClientProviderProps,
46
SigmaClientProvider,
57
} from 'client/react/Provider';
8+
69
export * from 'types';

src/index.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
export { client, initialize } from 'client';
2-
1+
export * from 'client';
32
export * from 'types';

src/utils/deepEqual.ts

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
function isObject(obj: any) {
2+
if (typeof obj === 'object' && obj != null) {
3+
return true;
4+
} else {
5+
return false;
6+
}
7+
}
8+
19
export function deepEqual(obj1: any, obj2: any) {
210
if (obj1 === obj2) {
311
return true;
@@ -12,13 +20,4 @@ export function deepEqual(obj1: any, obj2: any) {
1220
}
1321
return true;
1422
}
15-
16-
// Private
17-
function isObject(obj: any) {
18-
if (typeof obj === 'object' && obj != null) {
19-
return true;
20-
} else {
21-
return false;
22-
}
23-
}
2423
}

0 commit comments

Comments
 (0)