-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
fix(useInfiniteScroll): improve promise handling and add flush post to watch #5122
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
base: main
Are you sure you want to change the base?
Conversation
@vueuse/components
@vueuse/core
@vueuse/electron
@vueuse/firebase
@vueuse/integrations
@vueuse/math
@vueuse/metadata
@vueuse/nuxt
@vueuse/router
@vueuse/rxjs
@vueuse/shared
commit: |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #5122 +/- ##
==========================================
- Coverage 63.97% 63.96% -0.01%
==========================================
Files 343 343
Lines 7841 7840 -1
Branches 2425 2412 -13
==========================================
- Hits 5016 5015 -1
Misses 2286 2286
Partials 539 539 ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
3d6c06f to
04fcda3
Compare
|
Thank you 🙏🏽 Would you mind adding some tests to cover the new handling? |
…o watch - Move promise check to early return to prevent unnecessary logic execution - Add flush: 'post' to watch to ensure it runs after DOM updates
af98d59 to
de3d12d
Compare
Hi @OrbisK, sorry for the late reply. I’ve tried adding tests for this change, but I still haven’t been able to write one that reproduces the issue. So I created a small live demo to show the behavior before and after this change. Without Hope this demo helps clarify the issue!! |
|
@maximepvrt, thanks for the reminder :) I've added a demo above. Let me know if you need anything else!! |
Before submitting the PR, please make sure you do the following
fixes #123).Description
Follow-up improvements to #5110
For detailed, see this comment in PR
Changes
Move
promisecheck to early return to prevent unnecessary logic executionAdd
flush: 'post'to watch to ensure it runs after DOM updatesAdditional context