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

[core] fix(Icon): use loaded paths in initial state if available #6273

Merged
merged 2 commits into from
Jul 12, 2023

Conversation

adidahiya
Copy link
Contributor

Changes proposed in this pull request:

Try fetching the loaded icon paths on the initial render of <Icon> and using that as initial state instead of undefined. This helps to prevent a flash of unstyled content in cases where icons have already been loaded before an <Icon> is rendered.

Reviewers should focus on:

No regressions

Screenshot

@adidahiya
Copy link
Contributor Author

[core] fix(Icon): use loaded paths in initial state if available

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya
Copy link
Contributor Author

remove extraneous waiting in tests

Build artifact links for this commit: documentation | landing | table | demo

This is an automated comment from the deploy-preview CircleCI job.

@adidahiya adidahiya merged commit 774b902 into develop Jul 12, 2023
@adidahiya adidahiya deleted the ad/fix-icon-loading-initial-state branch July 12, 2023 19:06
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.

1 participant