Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add inModal state on useModal #974

Merged
merged 8 commits into from
Dec 1, 2023
Merged

Conversation

allangaldinosilva
Copy link
Contributor

@allangaldinosilva allangaldinosilva commented Nov 23, 2023

Add a new state, isModalOpen, to the useModal hook to track the open/closed state of a modal in a page.

It will initially be used on Search Query improvements addressed on this PR https://github.com/homebound-team/internal-frontend/pull/4385

From my tests, it did not trigger unnecessary re-renders for other components.

cc @bdow / @stephenh

Copy link
Contributor

@bdow bdow left a comment

Choose a reason for hiding this comment

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

Just some small cleanup. Otherwise looks good!

src/components/BeamContext.tsx Outdated Show resolved Hide resolved
src/components/Modal/Modal.stories.tsx Outdated Show resolved Hide resolved
src/components/Modal/useModal.test.tsx Show resolved Hide resolved
@allangaldinosilva allangaldinosilva merged commit 8f8ca2e into main Dec 1, 2023
6 checks passed
@allangaldinosilva allangaldinosilva deleted the feat-add-in-modal-state branch December 1, 2023 17:55
homebound-team-bot pushed a commit that referenced this pull request Dec 1, 2023
## [2.326.0](v2.325.2...v2.326.0) (2023-12-01)

### Features

* add inModal state on useModal ([#974](#974)) ([8f8ca2e](8f8ca2e))
@homebound-team-bot
Copy link

🎉 This PR is included in version 2.326.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants