We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent beff982 commit bd96d6dCopy full SHA for bd96d6d
src/useGet.ts
@@ -77,7 +77,11 @@ export default function get<M extends Model = Model>(options: UseGetOptions): Us
77
: params == null
78
? params
79
: { ...params }
80
- return model.getFromStore<M>(getterId, getterParams) || null
+ if (getterParams != null) {
81
+ return model.getFromStore<M>(getterId, getterParams) || null
82
+ } else {
83
+ return model.getFromStore<M>(getterId) || null
84
+ }
85
}),
86
servicePath: computed(() => model.servicePath)
87
}
0 commit comments