You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I just upgraded to RC1 and things are generally working great. Thank you :)
I have a question about isActive. I am using classes, and am trying to follow the suggestion History mixin docs and this page.
However it looks like the history object from that I'm creating doesn't have a isActive method. I took a look at the source code the router and it seems that isActive is added by the router itself.
If that's the case and is meant to be that way, then I'm curious about what others are doing.
Thanks,
Alexis
The text was updated successfully, but these errors were encountered:
Mixins don't work with ES6 classes. You'll need to either revert to using React.createClass() for defining components in which you really need to use a mixin, or use some alternative method for making mixins work with ES6 classes.
Hey folks,
I just upgraded to RC1 and things are generally working great. Thank you :)
I have a question about
isActive
. I am using classes, and am trying to follow the suggestion History mixin docs and this page.However it looks like the
history
object from that I'm creating doesn't have aisActive
method. I took a look at the source code the router and it seems thatisActive
is added by the router itself.If that's the case and is meant to be that way, then I'm curious about what others are doing.
Thanks,
Alexis
The text was updated successfully, but these errors were encountered: