Tiqa / redux-polyglot

Polyglot.js bindings for Redux
MIT License
58 stars 13 forks source link

Add ability to pass withRef: true to connect() #77

Open satazor opened 7 years ago

satazor commented 7 years ago

I need to be able to create a ref for an enhanced component but I can't do it since connect needs to be called with withRef. Unfortunately there's no way to do it currently. Thoughts?

guillaumearm commented 7 years ago

Sorry for the late @satazor , waiting for a redux-polyglot 1.0 release candidate, you can directly use connect from react-redux using getP in the mapStateToProps function

guillaumearm commented 6 years ago

Because #79, translate hoc will be deprecated soon.

@satazor: Are you ok with using getP directly with connect here ? Can I close this issue ?