forked from crowetic/commerce
Bug fix
This commit is contained in:
parent
10318b2fab
commit
a7baff45fc
@ -59,12 +59,14 @@ const useData: UseData = (options, input, fetcherFn, swrOptions) => {
|
|||||||
swrOptions
|
swrOptions
|
||||||
)
|
)
|
||||||
|
|
||||||
|
if (!('isLoading' in response)) {
|
||||||
defineProperty(response, 'isLoading', {
|
defineProperty(response, 'isLoading', {
|
||||||
get() {
|
get() {
|
||||||
return response.data === undefined
|
return response.data === undefined
|
||||||
},
|
},
|
||||||
set: (x) => x,
|
set: (x) => x,
|
||||||
})
|
})
|
||||||
|
}
|
||||||
|
|
||||||
return response
|
return response
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user