feat: add support for fallbackInView#521
Conversation
|
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 d30d0e9:
|
# Conflicts: # src/index.tsx
|
This pull request is being automatically deployed with Vercel (learn more). 🔍 Inspect: https://vercel.com/the-builder/react-intersection-observer/HZi7fsP5Jj4WmiimDeKrKUcst44v |
# Conflicts: # src/index.tsx
|
Thanks for this 🙌 Any idea when this will get released? |
|
Just want to make sure it's the right approach. :) |
|
🎉 This PR is included in version 8.33.0 🎉 The release is available on: Your semantic-release bot 📦🚀 |
This is solution for #495 that adds support for a
fallbackInViewvalue.You can set the fallback globally:
You can also define the fallback locally on
useInViewor<InView>as anoption. This will override the global fallback value.