Skip to content
This repository has been archived by the owner on Dec 14, 2019. It is now read-only.

Refactor enhancers #88

Merged
merged 1 commit into from
Jun 5, 2018
Merged

Refactor enhancers #88

merged 1 commit into from
Jun 5, 2018

Conversation

billyjanitsch
Copy link
Collaborator

@billyjanitsch billyjanitsch commented Jun 2, 2018

Rename stateHOC to withControlledState and chartWidthHOC to withComputedWidth and move them both to an enhancers/ folder. Also significantly simplify the former.

I need to test this internally to make sure I haven't broken anything, so please don't merge yet.

This should also land after #87 since it would otherwise break Highlight.

@billyjanitsch billyjanitsch force-pushed the billy/enhancers branch 2 times, most recently from c7c16f8 to 6fe40d1 Compare June 4, 2018 17:43
@billyjanitsch
Copy link
Collaborator Author

This looks good in the sandbox, but I'd be more comfortable merging it with more examples to test against (#92) -- especially a Brush example.

@billyjanitsch billyjanitsch changed the title [WIP] Refactor enhancers Refactor enhancers Jun 4, 2018
@billyjanitsch
Copy link
Collaborator Author

The sandbox -- including the brush example -- seem to be working fine with this change, so I think it's ready to merge pending review.

Copy link
Collaborator

@nabeel- nabeel- left a comment

Choose a reason for hiding this comment

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

This is a great cleanup, thanks!

@nabeel- nabeel- merged commit 0c20d30 into master Jun 5, 2018
@nabeel- nabeel- deleted the billy/enhancers branch June 5, 2018 17:00
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.

2 participants