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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "state-decorator",
3
- "version": "6.1.0",
3
+ "version": "6.2.0",
4
4
  "description": "React state management library",
5
5
  "main": "index.js",
6
6
  "module": "index.es.js",
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;