-
Hi, I wanted to use const useWindowScroll: ({ window }?: ConfigurableWindow | undefined) => {
x: Ref<number>;
y: Ref<number>;
}
@deprecated — Please use usescroll instead.
The signature '({ window }?: ConfigurableWindow | undefined): { x: Ref<number>; y: Ref<number>; }' of 'useWindowScroll' is deprecated.ts(6387)
index.d.ts(4486, 4): The declaration was marked as deprecated here. The docs don’t seem to have deprecated this composable. I don’t know what is wrong. I also tried useScroll but the values are not reactive. |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 3 replies
-
Yeah, |
Beta Was this translation helpful? Give feedback.
-
It seems that the implementation of |
Beta Was this translation helpful? Give feedback.
-
/cc @okxiaoliang4 |
Beta Was this translation helpful? Give feedback.
/cc @okxiaoliang4