-
Notifications
You must be signed in to change notification settings - Fork 22
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
Support rootMargin on intersectionObserver #13
Comments
This is interesting. I am not that familiar with intersection observers to think of a possible solution. Interested to know if you have anything cooking up. Also, I feel it might be a bit difficult to add more configuration to the component in it's current form. |
I can open a PR and just hard code a default margin of like 100px if that’s okay. |
Yes, that would be awesome. |
PR open, I'm also open to helping you maintain this project if you're interested. It works better than any of the others out there. Might throw a few more PR's your way |
@ScriptedAlchemy I have added you as a collaborator. |
@hadeeb i see you merged my PR, can you push the latest to NPM? |
Hello, |
I've tried to make it myself. Please note, I'm not very familiar with TS: #29 |
Some components can load in a janky fashion if they are hydrated when directly in view.
Id like to propose the ability to add a rootMargin, allowing a component to hydrate itself before a user is fully viewing it.
Use case:
Reasoning
Would provide a better UX
The text was updated successfully, but these errors were encountered: