We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
contextTypes
Unless contextTypes is set manually on the target component, the flux prop is missing and no context is sent to listenTo() or getProps.
flux
listenTo()
getProps
As a workaround, I currently have this middleware:
import React from 'react'; import { connect } from 'alt-react'; module.exports = function (Ele, opt) { Ele.contextTypes = { flux: React.PropTypes.object }; return connect(Ele, opt); };
It would be good if connect automatically added contextTypes to the target element if it doesn't already exist, or extends it with flux if it does.
The text was updated successfully, but these errors were encountered:
Sure this sounds reasonable to me.
Sorry, something went wrong.
@goatslacker - cool man. PS Love the ninja suit!
What suit? It's a uniform.
you know what, I realised my faux pas as soon as I hit send. Of course it's a uniform. My bad!
No branches or pull requests
Unless
contextTypes
is set manually on the target component, theflux
prop is missing and no context is sent tolistenTo()
orgetProps
.As a workaround, I currently have this middleware:
It would be good if connect automatically added
contextTypes
to the target element if it doesn't already exist, or extends it withflux
if it does.The text was updated successfully, but these errors were encountered: