{"action":"created","issue":{"url":"https://api.github.com/repos/ui-router/react/issues/180","repository_url":"https://api.github.com/repos/ui-router/react","labels_url":"https://api.github.com/repos/ui-router/react/issues/180/labels{/name}","comments_url":"https://api.github.com/repos/ui-router/react/issues/180/comments","events_url":"https://api.github.com/repos/ui-router/react/issues/180/events","html_url":"https://github.com/ui-router/react/issues/180","id":324620837,"number":180,"title":"addStateInfoToParentActive` is marked as required","user":{"login":"martino87r","id":3345520,"avatar_url":"https://avatars1.githubusercontent.com/u/3345520?v=4","gravatar_id":"","url":"https://api.github.com/users/martino87r","html_url":"https://github.com/martino87r","followers_url":"https://api.github.com/users/martino87r/followers","following_url":"https://api.github.com/users/martino87r/following{/other_user}","gists_url":"https://api.github.com/users/martino87r/gists{/gist_id}","starred_url":"https://api.github.com/users/martino87r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martino87r/subscriptions","organizations_url":"https://api.github.com/users/martino87r/orgs","repos_url":"https://api.github.com/users/martino87r/repos","events_url":"https://api.github.com/users/martino87r/events{/privacy}","received_events_url":"https://api.github.com/users/martino87r/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-05-19T10:51:08Z","updated_at":"2018-05-19T14:26:01Z","closed_at":"2018-05-19T12:11:15Z","author_association":"NONE","body":"I've recently started to rewrite a frontend and bumped all versions of libraries, with latest releases i get a strange warning:\r\n\r\n```\r\nWarning: Failed prop type: The prop `addStateInfoToParentActive` is marked as required in `Sref`, but its value is `undefined`.\r\n    in Sref\r\n    in UISref (created by SideMenu)\r\n```\r\n\r\nI'm using material-ui v1 stable (released a few days ago), and latest ui-router-react (and redux)\r\n\r\nBelow code is used for the ui:\r\n\r\n```\r\n// Main navigation feature of the app\r\nimport React, { Component } from 'react'\r\nimport { UISref } from '@uirouter/react'\r\n\r\nimport AppBar from '@material-ui/core/AppBar'\r\nimport Drawer from '@material-ui/core/Drawer'\r\nimport Toolbar from '@material-ui/core/Toolbar'\r\nimport Typography from '@material-ui/core/Typography'\r\nimport Button from '@material-ui/core/Button'\r\nimport IconButton from '@material-ui/core/IconButton'\r\nimport List from '@material-ui/core/List'\r\nimport ListItem from '@material-ui/core/ListItem';\r\nimport ListItemIcon from '@material-ui/core/ListItemIcon';\r\nimport ListItemText from '@material-ui/core/ListItemText';\r\nimport Divider from '@material-ui/core/Divider'\r\nimport Grid from '@material-ui/core/Grid';\r\n\r\nimport MenuIcon from '@material-ui/icons/Menu'\r\nimport HomeIcon from '@material-ui/icons/Home'\r\nimport DeviceHubIcon from '@material-ui/icons/DeviceHub'\r\n\r\nimport { withStyles } from '@material-ui/core/styles';\r\n\r\n\r\nclass SideMenu extends Component {\r\n\r\n  constructor(props) {\r\n    super(props)\r\n\r\n    this.state = {\r\n      open: false\r\n    }\r\n\r\n    this.toggleMenu = this.toggleMenu.bind(this)\r\n  }\r\n\r\n  toggleMenu(open) {\r\n    return () => {\r\n      this.setState({ open })\r\n    }\r\n  }\r\n\r\n  render() {\r\n    return (\r\n      <div>\r\n        <IconButton onClick={this.toggleMenu(true)} color=\"secondary\" aria-label=\"Menu\">\r\n          <MenuIcon />\r\n        </IconButton>\r\n        <Drawer open={this.state.open} onClose={this.toggleMenu(false)} >\r\n          <div\r\n            tabIndex={0}\r\n            role=\"button\"\r\n            onClick={this.toggleMenu(false)}\r\n            onKeyDown={this.toggleMenu(false)}>\r\n            <List>\r\n              <UISref to=\"app.index\">\r\n                <ListItem button>\r\n                  <ListItemIcon>\r\n                    <HomeIcon />\r\n                  </ListItemIcon>\r\n                  <ListItemText primary=\"Home\" />\r\n                </ListItem>\r\n              </UISref>\r\n            </List>\r\n          </div>\r\n        </Drawer>\r\n      </div>\r\n    )\r\n  }\r\n}\r\n\r\nconst styles = {\r\n  root: {\r\n    maxHeight: 50,\r\n  },\r\n  toolbar: {\r\n    minHeight: 50\r\n  }\r\n}\r\n\r\nclass Nav extends Component {\r\n\r\n  constructor(props) {\r\n    super(props)\r\n    this.state = {\r\n      openMenu: false\r\n    }\r\n  }\r\n\r\n  render() {\r\n    return (\r\n      <AppBar position=\"static\" className={this.props.classes.root}>\r\n        <Toolbar disableGutters={true} className={this.props.classes.toolbar}>\r\n          <Grid container alignItems=\"center\" spacing={0}>\r\n            <Grid item>\r\n              <SideMenu />\r\n            </Grid>\r\n            <Grid item>\r\n              <Typography variant=\"title\" color=\"inherit\">\r\n                MCNet 3 - RR2 DEV\r\n              </Typography>\r\n            </Grid>\r\n            <Grid item>\r\n            </Grid>\r\n          </Grid>\r\n        </Toolbar>\r\n      </AppBar>\r\n    )\r\n  }\r\n}\r\n\r\nexport default withStyles(styles)(Nav)\r\n```"},"comment":{"url":"https://api.github.com/repos/ui-router/react/issues/comments/390408524","html_url":"https://github.com/ui-router/react/issues/180#issuecomment-390408524","issue_url":"https://api.github.com/repos/ui-router/react/issues/180","id":390408524,"user":{"login":"martino87r","id":3345520,"avatar_url":"https://avatars1.githubusercontent.com/u/3345520?v=4","gravatar_id":"","url":"https://api.github.com/users/martino87r","html_url":"https://github.com/martino87r","followers_url":"https://api.github.com/users/martino87r/followers","following_url":"https://api.github.com/users/martino87r/following{/other_user}","gists_url":"https://api.github.com/users/martino87r/gists{/gist_id}","starred_url":"https://api.github.com/users/martino87r/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martino87r/subscriptions","organizations_url":"https://api.github.com/users/martino87r/orgs","repos_url":"https://api.github.com/users/martino87r/repos","events_url":"https://api.github.com/users/martino87r/events{/privacy}","received_events_url":"https://api.github.com/users/martino87r/received_events","type":"User","site_admin":false},"created_at":"2018-05-19T14:26:01Z","updated_at":"2018-05-19T14:26:01Z","author_association":"NONE","body":"Thanks for the promptly answer and kudos on your work, ui-router rocks! "}}
{"actor":{"display_login":"martino87r"}}