Skip to content

[hooks] Release: add SSR support to useInView#169

Merged
andrewrubin merged 3 commits into
mainfrom
feature/use-in-view-ssr-support
Jan 10, 2025
Merged

[hooks] Release: add SSR support to useInView#169
andrewrubin merged 3 commits into
mainfrom
feature/use-in-view-ssr-support

Conversation

@andrewrubin
Copy link
Copy Markdown
Member

Description

  • Adds SSR support by ensuring that the IntersectionObserver API isn't undefined, and exiting early if it is.
  • Updates the demo app to use the new React DOM render API.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Jan 10, 2025

🦋 Changeset detected

Latest commit: 9ab819a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 1 package
Name Type
@wethegit/react-hooks Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@andrewrubin andrewrubin merged commit 8cab56d into main Jan 10, 2025
@andrewrubin andrewrubin deleted the feature/use-in-view-ssr-support branch January 10, 2025 20:19
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