@akanjs/store 1.0.14 → 1.0.16

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.
@@ -647,10 +647,14 @@ const makeActions = (refName, slices) => {
647
647
  ...existingQueryArgs.slice(refreshArgLength, argLength)
648
648
  ];
649
649
  const {
650
+ default: defaultFromInitForm,
651
+ insight,
650
652
  page = currentState[namesOfSlice.pageOfModel],
651
653
  limit = currentState[namesOfSlice.limitOfModel],
652
654
  sort = currentState[namesOfSlice.sortOfModel],
653
- invalidate = true
655
+ invalidate = true,
656
+ queryArgs: queryArgsFromInitForm,
657
+ ...fetchPolicy
654
658
  } = initForm;
655
659
  const modelOperation = currentState[names.modelOperation];
656
660
  const queryArgsOfModel = currentState[namesOfSlice.queryArgsOfModel];
@@ -667,9 +671,10 @@ const makeActions = (refName, slices) => {
667
671
  (page - 1) * limit,
668
672
  limit,
669
673
  sort,
670
- { onError: initForm.onError }
674
+ { ...fetchPolicy, onError: initForm.onError }
671
675
  ),
672
676
  fetch[namesOfSlice.modelInsight](...queryArgs, {
677
+ ...fetchPolicy,
673
678
  onError: initForm.onError
674
679
  })
675
680
  ]);
@@ -631,10 +631,14 @@ const makeActions = (refName, slices) => {
631
631
  ...existingQueryArgs.slice(refreshArgLength, argLength)
632
632
  ];
633
633
  const {
634
+ default: defaultFromInitForm,
635
+ insight,
634
636
  page = currentState[namesOfSlice.pageOfModel],
635
637
  limit = currentState[namesOfSlice.limitOfModel],
636
638
  sort = currentState[namesOfSlice.sortOfModel],
637
- invalidate = true
639
+ invalidate = true,
640
+ queryArgs: queryArgsFromInitForm,
641
+ ...fetchPolicy
638
642
  } = initForm;
639
643
  const modelOperation = currentState[names.modelOperation];
640
644
  const queryArgsOfModel = currentState[namesOfSlice.queryArgsOfModel];
@@ -651,9 +655,10 @@ const makeActions = (refName, slices) => {
651
655
  (page - 1) * limit,
652
656
  limit,
653
657
  sort,
654
- { onError: initForm.onError }
658
+ { ...fetchPolicy, onError: initForm.onError }
655
659
  ),
656
660
  fetch[namesOfSlice.modelInsight](...queryArgs, {
661
+ ...fetchPolicy,
657
662
  onError: initForm.onError
658
663
  })
659
664
  ]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@akanjs/store",
3
- "version": "1.0.14",
3
+ "version": "1.0.16",
4
4
  "sourceType": "module",
5
5
  "publishConfig": {
6
6
  "access": "public"