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

Assume HOC first param is Component not last #343

Merged
merged 1 commit into from Oct 16, 2019
Merged

Assume HOC first param is Component not last #343

merged 1 commit into from Oct 16, 2019

Conversation

danez
Copy link
Collaborator

@danez danez commented Apr 13, 2019

Unless we know for sure it is not a component (literal, array, object, spread)

I did some research too and it seem most HOC have the component as first like for example relay and React.memo.

In case though someone wrote a HOC that assumes the component is the last argument, this will break their documentation.

Fixes #342

Unless we know for sure it is not a component (literal, array, object, spread)
@Evalon
Copy link

Evalon commented Oct 24, 2019

This is great, thank you for your work! Will it be released soon?

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jul 28, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

React.memo not wonking
2 participants