vuejs / vue-hackernews-2.0

HackerNews clone built with Vue 2.0, vue-router & vuex, with server-side rendering
MIT License
10.96k stars 2.15k forks source link

change asyncData function it doesn't hot reload #321

Open Qymh opened 6 years ago

Qymh commented 6 years ago

it can hot reload if i change data just like this image but it can't work if i change asyncData ,i need press f5 to refresh website and then the data can change image and both of them have hot-reload logs image

sirlancelot commented 6 years ago

asyncData runs on the server when the page is loaded. It only runs in the browser between page navigations.

Qymh commented 6 years ago

thanks for you answer and help @sirlancelot .I agree with your thinking.And I used nuxt ago, if i change asyncData, nuxt can hot reload image i think it may need some more options in webpack