4
0
forked from crowetic/commerce
This commit is contained in:
Luis Alvarez 2021-01-19 18:45:50 -05:00
parent 10318b2fab
commit a7baff45fc

View File

@ -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
} }