-
Notifications
You must be signed in to change notification settings - Fork 116
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(progress-steps): unnecessary re-renders #4170
Conversation
Run & review this pull request in StackBlitz Codeflow. |
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
☁️ Nx Cloud ReportCI is running/has finished running commands for commit ef7f872. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
Size Change: +13 B (0%) Total Size: 1.1 MB
ℹ️ View Unchanged
|
Paste Run #9086
Run Properties:
|
Project |
Paste
|
Branch Review |
fix-emotion-rerender-issue
|
Run status |
Passed #9086
|
Run duration | 02m 07s |
Commit |
ef7f872209: fix(progress-steps): unnecessary re-renders
|
Committer | Kristian Antrobus |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
67
|
View all changes introduced in this branch ↗︎ |
This pull request is automatically built and testable in CodeSandbox. To see build info of the built libraries, click here or the icon next to each commit SHA. Latest deployment of this branch, based on commit ef7f872:
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👏 documentation
Paste Run #9094
Run Properties:
|
Project |
Paste
|
Branch Review |
fix-emotion-rerender-issue
|
Run status |
Passed #9094
|
Run duration | 06m 13s |
Commit |
49f5682160 ℹ️: Merge ef7f87220959e1370fcdcaf02e7fb7eab2ed8a38 into a720e5e0c33350f92618eab3ac84...
|
Committer | krisantrobus |
View all properties for this run ↗︎ |
Test results | |
---|---|
Failures |
0
|
Flaky |
0
|
Pending |
0
|
Skipped |
0
|
Passing |
125
|
View all changes introduced in this branch ↗︎ |
Wrapped Progress steps in useMemo to avoid unnecessary re-renders. Note that this issue only occurs when a prop form the component is passed into the emotion styled.div that causes re-renders. If the option passed to this are static then there is no issue which is why only this component has changes as it is conditional on orientation.