Skip to content
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

Refine Feature Flags Root Table Pagination on Scroll #2026

Merged
merged 2 commits into from
Oct 4, 2024

Conversation

zackcl
Copy link
Collaborator

@zackcl zackcl commented Oct 4, 2024

Reference: #2020 (comment)

This PR removes the use of the (wheel) directive, which was triggering the fetching of flags and displaying the loading spinner even with slight scrolling. Instead, this PR implements an IntersectionObserver to control when the this.fetchFlagsOnScroll() function is called.

Here's a screen recording demonstrating the changes:

FF.Root.Table.Fetch.on.Scroll.mov

@danoswaltCL
Copy link
Collaborator

Interesting, makes sense to me.

@zackcl zackcl merged commit 768afc6 into dev Oct 4, 2024
14 checks passed
@zackcl zackcl deleted the feature/1576-refine-pagination-on-scroll branch October 4, 2024 14:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants