{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1693","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1693/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1693/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1693/events","html_url":"https://github.com/nuxt/nuxt.js/issues/1693","id":259121933,"node_id":"MDU6SXNzdWUyNTkxMjE5MzM=","number":1693,"title":"Problem: Vuex actions, dispatch from page","user":{"login":"miecio1212","id":11733901,"node_id":"MDQ6VXNlcjExNzMzOTAx","avatar_url":"https://avatars3.githubusercontent.com/u/11733901?v=4","gravatar_id":"","url":"https://api.github.com/users/miecio1212","html_url":"https://github.com/miecio1212","followers_url":"https://api.github.com/users/miecio1212/followers","following_url":"https://api.github.com/users/miecio1212/following{/other_user}","gists_url":"https://api.github.com/users/miecio1212/gists{/gist_id}","starred_url":"https://api.github.com/users/miecio1212/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miecio1212/subscriptions","organizations_url":"https://api.github.com/users/miecio1212/orgs","repos_url":"https://api.github.com/users/miecio1212/repos","events_url":"https://api.github.com/users/miecio1212/events{/privacy}","received_events_url":"https://api.github.com/users/miecio1212/received_events","type":"User","site_admin":false},"labels":[{"id":469223667,"node_id":"MDU6TGFiZWw0NjkyMjM2Njc=","url":"https://api.github.com/repos/nuxt/nuxt.js/labels/type:%20help%20wanted","name":"type: help wanted","color":"128A0C","default":false}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":11,"created_at":"2017-09-20T10:54:48Z","updated_at":"2018-11-03T13:05:25Z","closed_at":"2017-09-21T22:55:24Z","author_association":"NONE","body":"Hey, I've got problem with Vuex and fetch data. \r\nWhen i click to change route from menu it works but when i refresh page \"f5\" then it doesn't.\r\nBut when I add console.logs I see that it works in terminal but I see that store is filled but I don't see it in browser.\r\nI do something like this \r\n```\r\nin index.vue\r\n<script>\r\n  export default {\r\n    asyncData ({store}) {\r\n      store.dispatch('GET_CATEGORIES')\r\n    },\r\n    computed: {\r\n      categories () {\r\n        return this.$store.state.categories\r\n      },\r\n      category () {\r\n        return this.$route.params.category\r\n      }\r\n    }\r\n  }\r\n</script>\r\n```\r\n```\r\nin store/index.js\r\nexport const state = () => ({  \r\n  categories: []\r\n})\r\n\r\nexport const mutations = { \r\n  SET_CATEGORIES (state, categories) {\r\n    state.categories = categories\r\n  }\r\n}\r\n\r\nexport const actions = {\r\n  async GET_CATEGORIES ({commit}) {\r\n    const categories = await this.$axios.$get('http://icanhazip.com')\r\n    commit('SET_CATEGORIES', categories)\r\n  }\r\n}\r\n```\n\n<!--cmty--><!--cmty_prevent_hook-->\n<div align=\"right\"><sub><em>This question is available on <a href=\"https://nuxtjs.cmty.io\">Nuxt.js</a> community (<a href=\"https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c1517\">#c1517</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/435586462","html_url":"https://github.com/nuxt/nuxt.js/issues/1693#issuecomment-435586462","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/1693","id":435586462,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTU4NjQ2Mg==","user":{"login":"lock[bot]","id":33595554,"node_id":"MDM6Qm90MzM1OTU1NTQ=","avatar_url":"https://avatars1.githubusercontent.com/in/6672?v=4","gravatar_id":"","url":"https://api.github.com/users/lock%5Bbot%5D","html_url":"https://github.com/apps/lock","followers_url":"https://api.github.com/users/lock%5Bbot%5D/followers","following_url":"https://api.github.com/users/lock%5Bbot%5D/following{/other_user}","gists_url":"https://api.github.com/users/lock%5Bbot%5D/gists{/gist_id}","starred_url":"https://api.github.com/users/lock%5Bbot%5D/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lock%5Bbot%5D/subscriptions","organizations_url":"https://api.github.com/users/lock%5Bbot%5D/orgs","repos_url":"https://api.github.com/users/lock%5Bbot%5D/repos","events_url":"https://api.github.com/users/lock%5Bbot%5D/events{/privacy}","received_events_url":"https://api.github.com/users/lock%5Bbot%5D/received_events","type":"Bot","site_admin":false},"created_at":"2018-11-03T13:05:25Z","updated_at":"2018-11-03T13:05:25Z","author_association":"NONE","body":"This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.\n"}}
{"actor":{"display_login":"lock"}}