Skip to content

feature: v2#6

Merged
marlonmarcello merged 28 commits into
mainfrom
feature/use-animate-presence
Nov 28, 2023
Merged

feature: v2#6
marlonmarcello merged 28 commits into
mainfrom
feature/use-animate-presence

Conversation

@marlonmarcello
Copy link
Copy Markdown
Member

@marlonmarcello marlonmarcello commented Nov 27, 2023

Goal

This is a pretty chonky PR, it accomplishes the following:

New features:

  1. typescript and exported types
  2. changeset for version control
  3. documentation with docusaurus
  4. useAnimatePresence, hook for animating components in/out of DOM
  5. useMediaQuery, hook for matching a media query and listening to changes
  6. usePersistedMediaQuery, hook for matching a media query, listening to changes and persisting on localStorage

Fixes:

Changes:

  • useLocalStorage is now usePersistedState

I recommend cloning and checking the branch to see everything in action on the playground.

@marlonmarcello marlonmarcello self-assigned this Nov 27, 2023
@marlonmarcello marlonmarcello added the enhancement New feature or request label Nov 27, 2023
@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Nov 27, 2023

🦋 Changeset detected

Latest commit: b3f0462

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 Major

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

@marlonmarcello marlonmarcello changed the title feature: adds typescript, changeset and improved media queries hooks feature: adds typescript, changeset, docs, useAnimatePresence and fixes media query hooks Nov 28, 2023
@marlonmarcello marlonmarcello marked this pull request as ready for review November 28, 2023 05:15
@marlonmarcello marlonmarcello changed the title feature: adds typescript, changeset, docs, useAnimatePresence and fixes media query hooks v2 Nov 28, 2023
@marlonmarcello marlonmarcello changed the title v2 feature: v2 Nov 28, 2023
Copy link
Copy Markdown
Member

@andrewrubin andrewrubin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🎉 🚢

@marlonmarcello marlonmarcello merged commit 806244e into main Nov 28, 2023
@marlonmarcello marlonmarcello deleted the feature/use-animate-presence branch November 28, 2023 21:53
@github-actions github-actions Bot mentioned this pull request Nov 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PrefersReducedMotion: prioritize system setting over localStorage value

2 participants