I am using react-router with alt-iso decorators. With components on the first child it works really good but if I have nested routes and components the alt-iso decorator isn't working. Here is my code. Do you have any suggestions to solve this? Can't AltIso handle nested routes or components?
@AltIso.define(
(props) => PlayerStore.fetchById(props.params.playerId)
)
class Player extends React.Component {
render() {
return(
<div>
{this.props.children}
</div>
);
}
}
This Component works, but the Store is not rendered server-side. If I put the route out of the Player route it's working. But I want to have it nested :(
@AltIso.define(
(props) => {
return VideoStore.fetchVideoById(props.params.videoId)
}
)
class Video extends React.Component {
render() {
<div>My Video</div>
}
}
I am using react-router with alt-iso decorators. With components on the first child it works really good but if I have nested routes and components the alt-iso decorator isn't working. Here is my code. Do you have any suggestions to solve this? Can't AltIso handle nested routes or components?
This Component works, but the Store is not rendered server-side. If I put the route out of the Player route it's working. But I want to have it nested :(