Skip to content

Conversation

blushingpenguin
Copy link
Contributor

This hoists static functions in components decorated using withLocalization as per https://reactjs.org/docs/higher-order-components.html

@Pike
Copy link
Contributor

Pike commented Oct 2, 2019

How does this relate/interact to/with the work @Gregoor started in #406?

@blushingpenguin
Copy link
Contributor Author

How does this relate/interact to/with the work @Gregoor started in #406?

They are tangential -- in that PR withLocalization has been reimplemented using react hooks instead of context -- the behaviour wrt to static functions is the same. The two changes do conflict, but only in a minor way -- AFAICS the only difference needed would be:

return hoistNonReactStatics(WithDisplay, Inner);

in fluent-react/src/with_localization.js

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