oklas/react-breadcrumbs-dynamic

TypeError: Cannot read property 'subscribe' of undefined

waynebloss opened this issue · 1 comments

I instantiated the <Breadcrumbs /> without any props, on one of my pages in a react-router-dom v4 app.

Through.updateArea
C:/code/ta/react-admin-frontend/node_modules/react-through/lib/Through.js:147
  144 |   key: 'updateArea',
  145 |   value: function updateArea(area) {
  146 |     if (this.unsubscribe) this.unsubscribe();
> 147 |     if (area) this.unsubscribe = this.context.through.subscribe(area, this.doUpdate);
      | ^  148 |   }
  149 | }, {
  150 |   key: 'render',

OK, I didn't see that you have to add react-through.