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

fix: shouldn't trigger onchange when skipping #365

Merged
merged 1 commit into from
Aug 20, 2020
Merged

Conversation

thebuilder
Copy link
Owner

onChange could potentially be triggered when using the <InView> component, since it never removed the observer when setting skip later.

@vercel
Copy link

vercel bot commented Aug 20, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/the-builder/react-intersection-observer/ainme2v2j
✅ Preview: https://react-intersection-observer-git-fix-skip-onchange.the-builder.vercel.app

@thebuilder thebuilder merged commit 7aa5d74 into master Aug 20, 2020
@thebuilder thebuilder deleted the fix/skip-onchange branch August 20, 2020 19:11
@codesandbox-ci
Copy link

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 300954b:

Sandbox Source
react-intersection-observer Configuration

@thebuilder
Copy link
Owner Author

🎉 This PR is included in version 8.27.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant