Skip to content

Conversation

@snyk-bot
Copy link
Contributor

Snyk has created this PR to upgrade react-intersection-observer from 8.32.5 to 8.33.0.

merge advice
ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 22 days ago, on 2021-12-09.
Release notes
Package name: react-intersection-observer
  • 8.33.0 - 2021-12-09

    8.33.0 (2021-12-09)

    Features

    This is solution for #495 that adds support for a fallbackInView value.

    You can set the fallback globally:

    import { defaultFallbackInView } from 'react-intersection-observer';
    defaultFallbackInView(true); // or 'false'

    You can also define the fallback locally on useInView or <InView> as an
    option. This will override the global fallback value.

    import React from 'react';
    import { useInView } from 'react-intersection-observer';

    const Component = () => {
    const { ref, inView, entry } = useInView({
    fallbackInView: true,
    });

    return (
    <div ref={ref}>
    <h2>{Header inside viewport <span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">inView</span><span class="pl-kos">}</span></span>.}</h2>
    </div>
    );
    };




  • 8.32.5 - 2021-11-25

    8.32.5 (2021-11-25)

    Bug Fixes

from react-intersection-observer GitHub release notes

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants