-
Notifications
You must be signed in to change notification settings - Fork 93
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
Connected components may not be stateless #99
Comments
For reference my current workaround is to connect explicitly using <Foo ref="bar" {...boundActions} {...store.getState()} /> Along with |
Hi @babakness, thanks for this. Do you have a solution in mind? |
I think this is partially resolved in master via #98.
|
Maybe the solution to this is to pass down the What you think @babakness, @jetako? |
@matheusml I would consider following the approach taken by react-redux. |
@jetako ok, that's a valid option. Could you please open a PR with this? |
@matheusml Afraid I won't have the bandwidth for this any time soon. @babakness ? |
|
I need this feature... I will work on it after #119 |
To imprementing the solution using And, as recommended is React Docs, increase a major version of redux-zero. This is OK, @matheusml? |
Yes it is, @leobetosouza |
reduxjs/react-redux#141
The component returned by
connect
doesn't allow for refs ie<Component ref='foobar' />
. React gives warning "Warning: Stateless function components cannot be given refs. Attempts to access this ref will fail."The text was updated successfully, but these errors were encountered: