react-hooks-global-states 4.0.1 → 4.0.2
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.
|
@@ -48,7 +48,7 @@ export interface CreateContext {
|
|
|
48
48
|
* callback function called every time the state is about to change and it allows you to prevent the state change
|
|
49
49
|
*/
|
|
50
50
|
computePreventStateChange?: (args: StoreAPI & StateChanges<Value>) => boolean;
|
|
51
|
-
onUnMount?: (
|
|
51
|
+
onUnMount?: () => void;
|
|
52
52
|
}>): readonly [
|
|
53
53
|
Context<Value, ActionsConfig extends null ? StateSetter<Value> : ActionCollectionResult<Value, Metadata, ActionsConfig>, Metadata>,
|
|
54
54
|
Provider<Context<Value, ActionsConfig extends null ? StateSetter<Value> : ActionCollectionResult<Value, Metadata, ActionsConfig>, Metadata>, Metadata>
|
|
@@ -74,7 +74,7 @@ export interface CreateContext {
|
|
|
74
74
|
* callback function called every time the state is about to change and it allows you to prevent the state change
|
|
75
75
|
*/
|
|
76
76
|
computePreventStateChange?: (args: StoreAPI & StateChanges<Value>) => boolean;
|
|
77
|
-
onUnMount?: (
|
|
77
|
+
onUnMount?: () => void;
|
|
78
78
|
}>, actions: ActionsConfig): readonly [
|
|
79
79
|
Context<Value, ActionCollectionResult<Value, Metadata, ActionsConfig>, Metadata>,
|
|
80
80
|
Provider<Context<Value, ActionCollectionResult<Value, Metadata, ActionsConfig>, Metadata>>
|
|
@@ -132,7 +132,7 @@ export declare const createContext: {
|
|
|
132
132
|
* callback function called every time the state is about to change and it allows you to prevent the state change
|
|
133
133
|
*/
|
|
134
134
|
computePreventStateChange?: (args: StoreAPI & StateChanges<Value_1>) => boolean;
|
|
135
|
-
onUnMount?: (
|
|
135
|
+
onUnMount?: () => void;
|
|
136
136
|
}>): readonly [Context<Value_1, ActionsConfig extends null ? StateSetter<Value_1> : ActionCollectionResult<Value_1, Metadata, ActionsConfig>, Metadata>, Provider<Context<Value_1, ActionsConfig extends null ? StateSetter<Value_1> : ActionCollectionResult<Value_1, Metadata, ActionsConfig>, Metadata>, Metadata>];
|
|
137
137
|
<Value_2, Metadata_1 extends BaseMetadata, ActionsConfig_1 extends ActionCollectionConfig<Value_2, Metadata_1>, StoreAPI_1 = {
|
|
138
138
|
setMetadata: MetadataSetter<Metadata_1>;
|
|
@@ -155,7 +155,7 @@ export declare const createContext: {
|
|
|
155
155
|
* callback function called every time the state is about to change and it allows you to prevent the state change
|
|
156
156
|
*/
|
|
157
157
|
computePreventStateChange?: (args: StoreAPI_1 & StateChanges<Value_2>) => boolean;
|
|
158
|
-
onUnMount?: (
|
|
158
|
+
onUnMount?: () => void;
|
|
159
159
|
}>, actions: ActionsConfig_1): readonly [Context<Value_2, ActionCollectionResult<Value_2, Metadata_1, ActionsConfig_1>, Metadata_1>, Provider<Context<Value_2, ActionCollectionResult<Value_2, Metadata_1, ActionsConfig_1>, Metadata_1>, BaseMetadata>];
|
|
160
160
|
<Value_3, Metadata_2 extends BaseMetadata, ActionsConfig_2 extends ActionCollectionConfig<Value_3, Metadata_2>, StoreAPI_2 = {
|
|
161
161
|
setMetadata: MetadataSetter<Metadata_2>;
|
package/package.json
CHANGED