This creates an internal reference to the dispatcher instance in order to allow it to be found by the react mixin.
Upside: a dispatcher prop no longer needs to be passed to any component and this approach is backwards compatible with earlier version of react.
Downside: this approach is a little clunky, imo.
I have left the __findDispatcher method in place, which should make it easier to adopt new methods of attaching the dispatcher to views in the future, should we want to go that route.
fixes issue https://github.com/deloreanjs/delorean/issues/83
This creates an internal reference to the dispatcher instance in order to allow it to be found by the react mixin.
Upside: a dispatcher prop no longer needs to be passed to any component and this approach is backwards compatible with earlier version of react. Downside: this approach is a little clunky, imo.
I have left the
__findDispatcher
method in place, which should make it easier to adopt new methods of attaching the dispatcher to views in the future, should we want to go that route.