You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I think it might be () => props.foo as discussed in this RFC 👀
With the toRef() enhancement and toValue() introduced in vuejs/core#7997, I hope we can consolidate the pattern to:
// with props objectconstprops=defineProps(['foo'])useComposable(()=>props.foo)// with destructureconst{ foo }=defineProps(['foo'])useComposable(()=>foo)
I think in line 240 in the Vue 3.3 blog post there is a typo.
It reads:
useFeature(() => props.foo)
It should say:
useFeature(toValue(() => props.foo))
The text was updated successfully, but these errors were encountered: