{"action":"created","issue":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3088","repository_url":"https://api.github.com/repos/nuxt/nuxt.js","labels_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3088/labels{/name}","comments_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3088/comments","events_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3088/events","html_url":"https://github.com/nuxt/nuxt.js/issues/3088","id":307520037,"node_id":"MDU6SXNzdWUzMDc1MjAwMzc=","number":3088,"title":"Vue 'watch' has different performance in SSR and SPA","user":{"login":"fxxjdedd","id":13739947,"node_id":"MDQ6VXNlcjEzNzM5OTQ3","avatar_url":"https://avatars0.githubusercontent.com/u/13739947?v=4","gravatar_id":"","url":"https://api.github.com/users/fxxjdedd","html_url":"https://github.com/fxxjdedd","followers_url":"https://api.github.com/users/fxxjdedd/followers","following_url":"https://api.github.com/users/fxxjdedd/following{/other_user}","gists_url":"https://api.github.com/users/fxxjdedd/gists{/gist_id}","starred_url":"https://api.github.com/users/fxxjdedd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fxxjdedd/subscriptions","organizations_url":"https://api.github.com/users/fxxjdedd/orgs","repos_url":"https://api.github.com/users/fxxjdedd/repos","events_url":"https://api.github.com/users/fxxjdedd/events{/privacy}","received_events_url":"https://api.github.com/users/fxxjdedd/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-03-22T06:22:18Z","updated_at":"2018-10-14T15:00:40Z","closed_at":"2018-08-26T10:34:37Z","author_association":"NONE","body":"When enter a page for the **first** time, SSR and SPA perform different.\r\n\r\nI know, SSR will return a static HTML for the first time, then Hydrate(active) the page.\r\n\r\nBut still I can't figure out \r\n\r\n**For SSR:**\r\n\r\n```\r\nexport default {\r\n  asyncData() {\r\n    return {\r\n      paramA: {}\r\n    }\r\n  },\r\n  data() {\r\n    return {\r\n      paramB: {}\r\n    }\r\n  },\r\n  watch: {\r\n    paramA: function(newValue) {\r\n       console.log('paramA', newValue) // won't print unless 'immediate: true' \r\n    },\r\n    paramB: function(newValue) {\r\n       // Here is what i'm confusing\r\n       // will print whether 'immediate: true' or not, **Why?**\r\n       console.log('paramB', newValue) \r\n    }\r\n  }\r\n}\r\n```\r\n**For Pure Vue SPA:**\r\n```\r\nexport default {\r\n  data() {\r\n    return {\r\n      paramC: {}\r\n    }\r\n  },\r\n  watch: {\r\n    paramC: function(newValue) {\r\n       console.log('paramC', newValue) // won't print unless 'immediate: true' \r\n    }\r\n  }\r\n}\r\n```\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/c2673\">#c2673</a>)</em></sub></div>"},"comment":{"url":"https://api.github.com/repos/nuxt/nuxt.js/issues/comments/429633336","html_url":"https://github.com/nuxt/nuxt.js/issues/3088#issuecomment-429633336","issue_url":"https://api.github.com/repos/nuxt/nuxt.js/issues/3088","id":429633336,"node_id":"MDEyOklzc3VlQ29tbWVudDQyOTYzMzMzNg==","user":{"login":"qm3ster","id":10551234,"node_id":"MDQ6VXNlcjEwNTUxMjM0","avatar_url":"https://avatars1.githubusercontent.com/u/10551234?v=4","gravatar_id":"","url":"https://api.github.com/users/qm3ster","html_url":"https://github.com/qm3ster","followers_url":"https://api.github.com/users/qm3ster/followers","following_url":"https://api.github.com/users/qm3ster/following{/other_user}","gists_url":"https://api.github.com/users/qm3ster/gists{/gist_id}","starred_url":"https://api.github.com/users/qm3ster/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/qm3ster/subscriptions","organizations_url":"https://api.github.com/users/qm3ster/orgs","repos_url":"https://api.github.com/users/qm3ster/repos","events_url":"https://api.github.com/users/qm3ster/events{/privacy}","received_events_url":"https://api.github.com/users/qm3ster/received_events","type":"User","site_admin":false},"created_at":"2018-10-14T15:00:40Z","updated_at":"2018-10-14T15:00:40Z","author_association":"COLLABORATOR","body":"@hitao123 Of course you can. With all normal Vue usage there won't be any difference."}}
{"actor":{"display_login":"qm3ster"}}