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 8f2161c commit 873c947Copy full SHA for 873c947
src/useGet.ts
@@ -112,17 +112,12 @@ export default function get(options: UseGetOptions): UseGetData {
112
}
113
114
115
- watch(
+ watch([
116
() => getId(),
117
- id => {
118
- get(id, getParams())
119
- },
120
- { lazy }
121
- )
122
123
() => getParams(),
124
- params => {
125
- get(getId(), params)
+ ],
+ ([id, params]) => {
+ get(id as string | number, params as Params)
126
},
127
{ lazy }
128
)
0 commit comments