state-decorator 6.1.0 → 6.2.0
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.
- package/README.md +64 -13
- package/impl.d.ts +1 -1
- package/impl.es.js +1 -1
- package/impl.es.js.map +1 -1
- package/impl.js +1 -1
- package/impl.js.map +1 -1
- package/index.es.js +1 -1
- package/index.es.js.map +1 -1
- package/index.js +1 -1
- package/index.js.map +1 -1
- package/middlewares.es.js.map +1 -1
- package/middlewares.js.map +1 -1
- package/package.json +1 -1
- package/types.d.ts +2 -0
package/package.json
CHANGED
package/types.d.ts
CHANGED
|
@@ -262,6 +262,7 @@ export declare type StoreActions<S, A extends DecoratedActions, P = {}, DS = {},
|
|
|
262
262
|
export declare type OnPropsChangeEffectsContext<S, DS, P> = ContextWithDerived<S, DS, P> & {
|
|
263
263
|
indices: number[];
|
|
264
264
|
index: number;
|
|
265
|
+
isInit: boolean;
|
|
265
266
|
};
|
|
266
267
|
export declare type OnPropsChangeSideEffectsContext<S, P, A, DS = {}> = OnPropsChangeEffectsContext<S, DS, P> & {
|
|
267
268
|
actions: A;
|
|
@@ -274,6 +275,7 @@ declare type DerivedStateOption<S, P, DS> = {
|
|
|
274
275
|
};
|
|
275
276
|
};
|
|
276
277
|
export declare type OnPropsChangeOptions<S, DS, A, P> = {
|
|
278
|
+
onMount?: boolean;
|
|
277
279
|
getDeps: (p: P) => any[];
|
|
278
280
|
effects?: (ctx: OnPropsChangeEffectsContext<S, DS, P>) => S;
|
|
279
281
|
sideEffects?: (ctx: OnPropsChangeSideEffectsContext<S, P, A>) => void;
|