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
For the moment, I have done this by adding a static getRoutes function to the class, and then calling utils.setRoutes(Object.keys(App.getRoutes())); at the bottom of the file.
It would be great to be able to use setRoutes from within the component (constructor probably). I could then do this:
And then later something like
const component = this._getRoutes(this.props.router.src)
to choose the component.However, it seems i can only do it externally to the class. Is this fixable?
The text was updated successfully, but these errors were encountered: