Skip to content

Version Packages#8

Merged
marlonmarcello merged 1 commit into
mainfrom
changeset-release/main
Nov 28, 2023
Merged

Version Packages#8
marlonmarcello merged 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions
Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and the packages will be published to npm automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

@wethegit/react-modal@2.0.0

Major Changes

  • #7 4512c52 Thanks @marlonmarcello! - # V2

    Breaking changes

    Seriously, everything.

    Why

    The old design of the modal was good but it had an achilles heel, it used an internal context to handle the transition and syncing that with the state which caused:

    1. Actions to be tied to a context, adding custom components to close the modal for example was a bit annoying
    2. Animation and state were too tightly coupled and not exposed for further customization

    What's new

    The modal is now a controlled component, you can control the state of the modal from outside using the hook useModal which also exposes the state so you can use further customize the Modal and even the child components.

@marlonmarcello marlonmarcello self-requested a review November 28, 2023 22:30
@marlonmarcello marlonmarcello merged commit 1e7ab70 into main Nov 28, 2023
@marlonmarcello marlonmarcello deleted the changeset-release/main branch November 28, 2023 22:30
@marlonmarcello marlonmarcello restored the changeset-release/main branch November 28, 2023 22:32
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.

1 participant