{"action":"closed","issue":{"url":"https://api.github.com/repos/react-community/react-navigation/issues/2210","repository_url":"https://api.github.com/repos/react-community/react-navigation","labels_url":"https://api.github.com/repos/react-community/react-navigation/issues/2210/labels{/name}","comments_url":"https://api.github.com/repos/react-community/react-navigation/issues/2210/comments","events_url":"https://api.github.com/repos/react-community/react-navigation/issues/2210/events","html_url":"https://github.com/react-community/react-navigation/issues/2210","id":244722965,"number":2210,"title":"StackNavigator push transition pausing 80% through & then finishing","user":{"login":"thomasbaldwin","id":5099084,"avatar_url":"https://avatars0.githubusercontent.com/u/5099084?v=4","gravatar_id":"","url":"https://api.github.com/users/thomasbaldwin","html_url":"https://github.com/thomasbaldwin","followers_url":"https://api.github.com/users/thomasbaldwin/followers","following_url":"https://api.github.com/users/thomasbaldwin/following{/other_user}","gists_url":"https://api.github.com/users/thomasbaldwin/gists{/gist_id}","starred_url":"https://api.github.com/users/thomasbaldwin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/thomasbaldwin/subscriptions","organizations_url":"https://api.github.com/users/thomasbaldwin/orgs","repos_url":"https://api.github.com/users/thomasbaldwin/repos","events_url":"https://api.github.com/users/thomasbaldwin/events{/privacy}","received_events_url":"https://api.github.com/users/thomasbaldwin/received_events","type":"User","site_admin":false},"labels":[{"id":526653633,"url":"https://api.github.com/repos/react-community/react-navigation/labels/Type:%20Question","name":"Type: Question","color":"cc317c","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2017-07-21T16:39:31Z","updated_at":"2017-08-28T00:54:41Z","closed_at":"2017-08-28T00:54:41Z","body":"<!---\r\nBEFORE YOU SUBMIT please search open/closed issues since someone might have asked the same thing before!\r\n-->\r\n\r\n### Current Behavior\r\nI'm doing a redux call in my `componentDidMount` method for one of my components that is being pushed onto the screen via the `StackNavigator`. The transition stops about 80% through and then finishes. However, when I remove the redux call from the `componentDidMount` method, the transition is completely smooth.\r\n\r\nHere is some sample code:\r\n\r\n    function mapStateToProps(state) {\r\n      return {\r\n        currentPosition: state.fetchedUserLocation,\r\n        locationData: state.fetchedLocation,\r\n      }\r\n    };\r\n\r\n    function mapDispatchToProps(dispatch) {\r\n      return bindActionCreators(ActionCreators, dispatch);\r\n    };\r\n\r\n    class Place extends Component {\r\n      constructor(props) {\r\n        super(props);\r\n\r\n        const commentActionDetails = {\r\n          options: ['Cancel'],\r\n          cancelIndex: CANCEL_COMMENT_INDEX,\r\n        }\r\n        \r\n        this.state = {\r\n          commentActionDetails,\r\n          currentPosition: props.navigation.state.currentPosition,\r\n          locationData: props.locationData,\r\n        };    \r\n      }\r\n      \r\n      componentDidMount() {\r\n        const { locationId } = this.props.navigation.state.params;\r\n        this.props.fetchLocation(locationId);\r\n      }\r\n\r\nIs there somewhere else I should be placing my redux calls than in the componentDidMount? Or am I doing my redux operation wrong? I thought they should be asynchronous.\r\n\r\nThanks for the help!\r\n\r\n### Your Environment\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n\r\n| software         | version\r\n| ---------------- | -------\r\n| react-navigation | 1.0.0-beta.11\r\n| react-native     |  0.44.0\r\n| node             | 8.1.2\r\n| npm or yarn      | 5.2.0\r\n"}}
{"actor":{"display_login":"spencercarli"}}