-
Notifications
You must be signed in to change notification settings - Fork 2
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
add usePositionStickyObserver #294
Conversation
133fa6b
to
3a6ff64
Compare
1439e76
to
8fcf97d
Compare
} | ||
|
||
const { observe } = useIntersectionObserver(intersect, computed(() => ({ | ||
threshold: [1], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Does a hardcoded threshold make sense here? Asking cause I'm not sure how exactly it's used
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah that's a key part of the hack (explained here). Tbh, I'm not 100% sure how it works under the hood.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Couple thoughts. But overall what I'd expect. Approving so you can move on if this is blocking other PRs.
I still need to test this, but putting it up for early review.