Skip to content

Releases: thebuilder/react-intersection-observer

v8.33.1

15 Dec 22:52
e217965

Choose a tag to compare

8.33.1 (2021-12-15)

Bug Fixes

v8.33.0

09 Dec 22:55
aa50422

Choose a tag to compare

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 ${inView}.`}</h2>
    </div>
  );
};

v8.32.5

25 Nov 12:28
249de1a

Choose a tag to compare

8.32.5 (2021-11-25)

Bug Fixes

v8.32.4

23 Nov 12:53
d4ecf3a

Choose a tag to compare

8.32.4 (2021-11-23)

Bug Fixes

v8.32.3

19 Nov 22:36
bc55d20

Choose a tag to compare

8.32.3 (2021-11-19)

Bug Fixes

v8.32.2

25 Oct 12:01
f76fa78

Choose a tag to compare

8.32.2 (2021-10-25)

Bug Fixes

  • make ratio return largest threshold smaller than trigger (#510) (f76fa78)

v8.32.1

27 Aug 13:55
d758a3e

Choose a tag to compare

8.32.1 (2021-08-27)

Bug Fixes

v8.32.0

14 May 21:03
650e513

Choose a tag to compare

8.32.0 (2021-05-14)

Features

v8.31.1

19 Apr 12:53
47bad43

Choose a tag to compare

8.31.1 (2021-04-19)

Bug Fixes

v8.31.0

24 Nov 18:59
721cd61

Choose a tag to compare

8.31.0 (2020-11-24)

Features

  • add support for testing threshold values (#417) (721cd61)