laracasts / Lets-Build-a-Forum-in-Laravel

http://laracasts.com/series/lets-build-a-forum-with-laravel
914 stars 311 forks source link

Could not clear notification item when window.location.pathname is same #47

Open 0xuhe opened 6 years ago

0xuhe commented 6 years ago

https://github.com/laracasts/Lets-Build-a-Forum-in-Laravel/blob/713853deb83d108f6bfa167fbdfc44e244c57e18/resources/assets/js/components/UserNotifications.vue#L31

It seems that we need remove this notification item in Vue if we are at subscribed thread page. It may be caused by window.location.pathname is same, so the browser won't reload, so the notifications in Vue won't change. That's wired that I found it works fine in your video.