react-global-state-hooks 6.0.4 → 6.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -17,7 +17,9 @@ type Context<Value, PublicStateMutator, Metadata extends BaseMetadata> = (() =>
|
|
|
17
17
|
* Allows you to create a selector hooks
|
|
18
18
|
* This hooks only works when contained in the scope of the provider
|
|
19
19
|
*/
|
|
20
|
-
createSelectorHook: <RootState, RootSelectorResult, RootDerivate = RootSelectorResult extends never ? RootState : RootSelectorResult>(this: Context<RootState, PublicStateMutator, Metadata>, mainSelector?: (state: Value) => RootSelectorResult, { isEqualRoot, isEqual, }?: Omit<UseHookConfig<RootDerivate, Value>, 'dependencies'>
|
|
20
|
+
createSelectorHook: <RootState, RootSelectorResult, RootDerivate = RootSelectorResult extends never ? RootState : RootSelectorResult>(this: Context<RootState, PublicStateMutator, Metadata>, mainSelector?: (state: Value) => RootSelectorResult, { isEqualRoot, isEqual, name, }?: Omit<UseHookConfig<RootDerivate, Value>, 'dependencies'> & {
|
|
21
|
+
name?: string;
|
|
22
|
+
}) => StateHook<RootDerivate, PublicStateMutator, Metadata>;
|
|
21
23
|
};
|
|
22
24
|
export interface CreateContext {
|
|
23
25
|
createContext<Value>(state: Value): readonly [
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-global-state-hooks",
|
|
3
|
-
"version": "6.0.
|
|
3
|
+
"version": "6.0.5",
|
|
4
4
|
"description": "This is a package to easily handling global-state across your react components No-redux, No-context.",
|
|
5
5
|
"main": "lib/bundle.js",
|
|
6
6
|
"types": "lib/src/index.d.ts",
|
|
@@ -76,6 +76,6 @@
|
|
|
76
76
|
"react": ">=17.0.0"
|
|
77
77
|
},
|
|
78
78
|
"dependencies": {
|
|
79
|
-
"react-hooks-global-states": "4.0.
|
|
79
|
+
"react-hooks-global-states": "4.0.5"
|
|
80
80
|
}
|
|
81
81
|
}
|