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
) )
defineProperty(response, 'isLoading', { if (!('isLoading' in response)) {
get() { defineProperty(response, 'isLoading', {
return response.data === undefined get() {
}, return response.data === undefined
set: (x) => x, },
}) set: (x) => x,
})
}
return response return response
} }