Skip to content

Conversation

@thebuilder
Copy link
Owner

This expands the test-utils to support defining a threshold value when checking for isIntersecting. Before you could only give a boolean.

This should allow you test more complex threshold based scenarios.

@vercel
Copy link

vercel bot commented Nov 24, 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/h56wczk6p
✅ Preview: https://react-intersection-observer-git-feat-test-threshold.the-builder.vercel.app

@thebuilder thebuilder self-assigned this Nov 24, 2020
@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 fc8dfc2:

Sandbox Source
useInView Configuration
InView render props Configuration
InView plain children Configuration

@thebuilder thebuilder merged commit 721cd61 into master Nov 24, 2020
@thebuilder thebuilder deleted the feat/test-threshold branch November 24, 2020 18:56
@thebuilder
Copy link
Owner Author

🎉 This PR is included in version 8.31.0 🎉

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants