-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
It's impossible to set both x & y in useScroll synchronously #3809
Closed
7 tasks done
pieczorx opened this issue
Feb 21, 2024
· 0 comments
· May be fixed by abdullahkabakk/url-shortener-website#7, Anomaly-1/platemaster#66, Anomaly-1/platemaster#78, Anomaly-1/platemaster#79 or Anomaly-1/platemaster#87
Closed
7 tasks done
It's impossible to set both x & y in useScroll synchronously #3809
pieczorx opened this issue
Feb 21, 2024
· 0 comments
· May be fixed by abdullahkabakk/url-shortener-website#7, Anomaly-1/platemaster#66, Anomaly-1/platemaster#78, Anomaly-1/platemaster#79 or Anomaly-1/platemaster#87
Labels
Comments
5 tasks
1 task
This was referenced Jul 3, 2024
This was referenced Jul 24, 2024
This was referenced Sep 3, 2024
This was referenced Sep 11, 2024
This was referenced Sep 18, 2024
This was referenced Sep 22, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
when you import
useScroll
and define these functions
few things will happen:
a()
will work perfectlyb()
will work perfectlyc()
will cause only y to update and leave x with previous valueIt's probably related to reactivity in Vue but it's actually possible to do 2 things on vueUse side:
a) don't rely on reactivity while doing scrollTo inside this module
b) expose scrollTo method to developers
See the repro for more information 😄
Reproduction
https://stackblitz.com/edit/vitejs-vite-helfwa?file=src%2FApp.vue
System Info
Used Package Manager
yarn
Validations
The text was updated successfully, but these errors were encountered: