Skip to content

Commit cf7a2a1

Browse files
Merge pull request #29 from HichemTab-tech/add-use-shared-context-to-exports
feat: export useSharedContext from use-shared module
2 parents 83ebff1 + 77b436d commit cf7a2a1

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-shared-states",
3-
"version": "1.0.16",
3+
"version": "1.0.17",
44
"type": "module",
55
"description": "Global state made as simple as useState, with zero config, built-in async caching, and automatic scoping.",
66
"keywords": [

src/hooks/index.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,7 @@ export {
1919
createSharedSubscription,
2020
SharedSubscriptionsApi
2121
} from "./use-shared-subscription";
22-
export type { SharedSubscriptionStateReturn } from "./use-shared-subscription";
22+
export type { SharedSubscriptionStateReturn } from "./use-shared-subscription";
23+
24+
// noinspection JSUnusedGlobalSymbols
25+
export {default as useSharedContext} from './use-shared';

0 commit comments

Comments
 (0)