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

Refactor uses of useDialog to pass memoized callbacks #125

Merged
merged 1 commit into from
Oct 5, 2023

Conversation

tmeasday
Copy link
Member

@tmeasday tmeasday commented Oct 3, 2023

Slightly more awkward this way but I guess good not to be readding/removing post message handers on every rerender.

📦 Published PR as canary version: 0.0.99--canary.125.932312b.0

✨ Test out this PR locally via:

npm install @chromaui/addon-visual-tests@0.0.99--canary.125.932312b.0
# or 
yarn add @chromaui/addon-visual-tests@0.0.99--canary.125.932312b.0

Copy link
Member

@ghengeveld ghengeveld left a comment

Choose a reason for hiding this comment

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

It's not getting any less complicated, but at least it should perform better.

@tmeasday tmeasday merged commit 6fd62f1 into main Oct 5, 2023
3 checks passed
@tmeasday tmeasday deleted the tom/memoize-handlers branch October 5, 2023 23:30
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