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

Hooks 🎣 #1208

Merged
merged 120 commits into from
Apr 4, 2019
Merged

Hooks 🎣 #1208

merged 120 commits into from
Apr 4, 2019

Conversation

alexreardon
Copy link
Collaborator

"gzipped": 32910
"bundled": 327193,
"minified": 117669,
"gzipped": 33593
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This was suprising

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I was expecting moving away from classes would be a drop, but it has gone the other way

"treeshaked": {
"rollup": {
"code": 85891,
"import_statements": 832
"code": 30284,
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

This is quite a nice drop. @TrySound I am not sure what this property is referring too. Can you please explain this property?

Copy link
Contributor

Choose a reason for hiding this comment

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

This is the code in user bundle when you import nothing. Useful for ui libs like material ui. Does not mean a lot for this lib though.

</AnimateInOut>
);

// const placeholder: Node | null = instruction ? (
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: remove

// It is okay for these properties to be applied on elements that are not flex children
flexShrink: '0',
flexGrow: '0',
// Just a little performance optimisation: avoiding the browser needing
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: move to style marshal?

@alexreardon alexreardon marked this pull request as ready for review April 1, 2019 03:10
return;
}

checkReactVersion(peerDependencies.react, React.version);
Copy link
Contributor

Choose a reason for hiding this comment

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

I would wrap this check with condition. It looks like early returns does not eliminated well with webpack uglify pair.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Thanks

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

TODO: update

@alexreardon alexreardon changed the base branch from master to dev April 4, 2019 00:19
@alexreardon alexreardon merged commit 7e1cbdf into dev Apr 4, 2019
@alexreardon alexreardon deleted the hooks branch July 29, 2019 22:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants