Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
styfle committed Jan 24, 2022
1 parent 8a84282 commit 49d49d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/api-reference/next/image.md
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ A string (with similar syntax to the margin property) that acts as the bounding

### lazyRoot

A React RefObject pointing to the Element which the [lazyBoundary](#lazyBoundary) calculates for the Intersection detection. Defaults to 'null', refering to the root Html Element.
A React [Ref](https://reactjs.org/docs/refs-and-the-dom.html) pointing to the Element which the [lazyBoundary](#lazyBoundary) calculates for the Intersection detection. Defaults to `null`, referring to the document viewport.

[Learn more](https://developer.mozilla.org/en-US/docs/Web/API/IntersectionObserver/root)

Expand Down
2 changes: 1 addition & 1 deletion packages/next/client/use-intersection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ export function useIntersection<T extends Element>({
unobserve.current = observe(
el,
(isVisible) => isVisible && setVisible(isVisible),
{ root: root, rootMargin }
{ root, rootMargin }
)
}
},
Expand Down

0 comments on commit 49d49d3

Please sign in to comment.