{"action":"opened","issue":{"url":"https://api.github.com/repos/reactjs/reselect/issues/98","repository_url":"https://api.github.com/repos/reactjs/reselect","labels_url":"https://api.github.com/repos/reactjs/reselect/issues/98/labels{/name}","comments_url":"https://api.github.com/repos/reactjs/reselect/issues/98/comments","events_url":"https://api.github.com/repos/reactjs/reselect/issues/98/events","html_url":"https://github.com/reactjs/reselect/issues/98","id":142817207,"number":98,"title":"Reselect computes on route change","user":{"login":"mmahalwy","id":3749095,"avatar_url":"https://avatars.githubusercontent.com/u/3749095?v=3","gravatar_id":"","url":"https://api.github.com/users/mmahalwy","html_url":"https://github.com/mmahalwy","followers_url":"https://api.github.com/users/mmahalwy/followers","following_url":"https://api.github.com/users/mmahalwy/following{/other_user}","gists_url":"https://api.github.com/users/mmahalwy/gists{/gist_id}","starred_url":"https://api.github.com/users/mmahalwy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mmahalwy/subscriptions","organizations_url":"https://api.github.com/users/mmahalwy/orgs","repos_url":"https://api.github.com/users/mmahalwy/repos","events_url":"https://api.github.com/users/mmahalwy/events{/privacy}","received_events_url":"https://api.github.com/users/mmahalwy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-23T00:11:28Z","updated_at":"2016-03-23T00:11:28Z","closed_at":null,"body":"I have selector:\r\n```\r\nexport const regionSelector = (state, ownProps) => {\r\n  const { params } = ownProps;\r\n  let id = params.regionId;\r\n  let isLegacy = false;\r\n  let region = null;\r\n  let regionImages = [];\r\n\r\n  if (!isJeevesId(params.regionId)) {\r\n    // If it's not a jeeves id, we should check if it's in samurai regions, otherwise\r\n    // it is a pirate one\r\n    if (state.regions.map[params.regionId]) {\r\n      id = state.regions.map[params.regionId];\r\n      region = state.regions.data[id];\r\n      regionImages = region.regionImageIds.map(imageId => state.regionImages.data[imageId]);\r\n    } else {\r\n      id = state.legacy.map.regions[params.regionId];\r\n      region = state.legacy.regions[id];\r\n      isLegacy = true;\r\n    }\r\n  }\r\n\r\n  return { id, region, isLegacy, regionImages };\r\n};\r\n```\r\n\r\nwhich fires when my route changes and therefore having `ownProps.regionId` be `undefined`. I'd actually like it to not fire when changing routes if possible. How can I do so?"}}