@arrai-innovations/reactive-helpers 8.5.3 → 8.5.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.
- package/package.json +1 -1
- package/use/listSubscription.js +1 -2
- package/use/object.js +1 -4
package/package.json
CHANGED
package/use/listSubscription.js
CHANGED
|
@@ -49,14 +49,13 @@ export function useListSubscription({ listInstance, props, functions }) {
|
|
|
49
49
|
);
|
|
50
50
|
}
|
|
51
51
|
if (!listInstance) {
|
|
52
|
-
listInstance = useListInstance({ props, functions });
|
|
53
|
-
} else {
|
|
54
52
|
if (!("listArgs" in props)) {
|
|
55
53
|
console.error("listArgs not set, must be true for intendToList or intendToSubscribe to work.");
|
|
56
54
|
}
|
|
57
55
|
if (!("retrieveArgs" in props)) {
|
|
58
56
|
console.error("retrieveArgs not set, must be true for intendToList or intendToSubscribe to work.");
|
|
59
57
|
}
|
|
58
|
+
listInstance = useListInstance({ props, functions });
|
|
60
59
|
}
|
|
61
60
|
if (!listInstance.state.crud.subscribe) {
|
|
62
61
|
listInstance.state.crud.subscribe = defaultCrud.subscribe;
|
package/use/object.js
CHANGED
|
@@ -29,10 +29,7 @@ export const useObject = ({ props, functions }) => {
|
|
|
29
29
|
});
|
|
30
30
|
managed.objectSubscription = useObjectSubscription({
|
|
31
31
|
objectInstance: managed.objectInstance,
|
|
32
|
-
props
|
|
33
|
-
intendToSubscribe: toRef(props, "intendToSubscribe"),
|
|
34
|
-
intendToRetrieve: toRef(props, "intendToRetrieve"),
|
|
35
|
-
}),
|
|
32
|
+
props,
|
|
36
33
|
});
|
|
37
34
|
managed.objectRelated = useObjectRelated({
|
|
38
35
|
parentState: managed.objectSubscription.state,
|