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

docs(perf): refactor ComponentControls #3069

Merged
merged 1 commit into from
Aug 7, 2018
Merged

Conversation

layershifter
Copy link
Member

Before

image

After

image


This PR grabs controls from Stardust. I asked my collegues about this, before this change they don't know about editor 🤔

This also allows us to omit Popups creation for each example, it costs over 50-100 ms in development mode.

Signed-off-by: Oleksandr Fediashov <ofediashov@exadel.com>
@codecov-io
Copy link

Codecov Report

Merging #3069 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #3069   +/-   ##
=======================================
  Coverage   99.92%   99.92%           
=======================================
  Files         163      163           
  Lines        2738     2738           
=======================================
  Hits         2736     2736           
  Misses          2        2

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update a12205a...a5850f1. Read the comment docs.

)

ComponentControlsEditCode.propTypes = {
active: PropTypes.bool,
onClick: PropTypes.func,
}

export default updateForKeys(['active'])(ComponentControlsEditCode)
export default ComponentControlsEditCode
Copy link
Member Author

Choose a reason for hiding this comment

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

Now, there is no sence in this HOCs.

@levithomason
Copy link
Member

This PR grabs controls from Stardust. I asked my collegues about this, before this change they don't know about editor 🤔

This is exactly what prompted the refactor here! I was quite surprised and bummed out that people didn't know about the editor :(

@levithomason
Copy link
Member

Should we also reverse the order of the links as in Stardust? This makes the first link "Try it".

Copy link
Member

@levithomason levithomason left a comment

Choose a reason for hiding this comment

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

See question, make a decision, and merge 👍

@levithomason
Copy link
Member

On second thought, we can always reorder them after this is merged 😄

@levithomason levithomason merged commit 45fbf29 into master Aug 7, 2018
@levithomason levithomason deleted the docs/perf-issues branch August 7, 2018 00:50
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