Skip to content

Commit

Permalink
fix: allow returning of falsy values from useAsync (#670)
Browse files Browse the repository at this point in the history
  • Loading branch information
mango-martin authored Aug 19, 2022
1 parent 2cce22b commit f8d9128
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/runtime/composables/async.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ export const useAsync = <T>(
const _ref = isRef(key) ? key : ssrRef<T | null>(null, key)

if (
!_ref.value ||
_ref.value === null ||
(process.env.NODE_ENV === 'development' &&
process.client &&
window[globalNuxt]?.context.isHMR)
Expand Down

0 comments on commit f8d9128

Please sign in to comment.