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

fix: accordion mounting #1370

Merged
merged 1 commit into from
Dec 19, 2022
Merged

fix: accordion mounting #1370

merged 1 commit into from
Dec 19, 2022

Conversation

iamacook
Copy link
Member

What it solves

Resolves #1303

How this PR fixes it

The Accordions now only mount on enter, not unmounting when closing.

How to test it

Open/close the transaction accordions/Safe Apps queue bar and observe that there is only one network request. Subsequent opens/closes are then smooth.

Screenshots

accordions

@github-actions
Copy link

github-actions bot commented Dec 14, 2022

Branch preview

✅ Deploy successful!

https://accordionmounting--webcore.review-web-core.5afe.dev

@iamacook iamacook requested a review from usame-algan December 14, 2022 11:15
@github-actions
Copy link

ESLint Summary View Full Report

Annotations are provided inline on the Files Changed tab. You can also see all annotations that were generated on the annotations page.

Type Occurrences Fixable
Errors 0 0
Warnings 0 0
Ignored 0 N/A
  • Result: ✅ success
  • Annotations: 0 total

Report generated by eslint-plus-action

Copy link
Member

@usame-algan usame-algan left a comment

Choose a reason for hiding this comment

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

It also doesn't do the fetch anymore everytime it is reopened, really nice fix! 🚀

@katspaugh
Copy link
Member

Verified, works smoothly and no extra requests. ✅

@katspaugh katspaugh merged commit 47a1ea8 into dev Dec 19, 2022
@katspaugh katspaugh deleted the accordion-mounting branch December 19, 2022 09:18
@github-actions github-actions bot locked and limited conversation to collaborators Dec 19, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Open accordions with a smooth transition
3 participants