問題タブ [laravel-notification]
For questions regarding programming in ECMAScript (JavaScript/JS) and its various dialects/implementations (excluding ActionScript). Note JavaScript is NOT the same as Java! Please include all relevant tags on your question; e.g., [node.js], [jquery], [json], [reactjs], [angular], [ember.js], [vue.js], [typescript], [svelte], etc.
laravel - Vue.js component not updating after notification is received via websocket in Laravel
I am trying to populate the notification list on real-time but view vue component is not updating. My code so far:
app.js
NotificationItem.vue
NotificationAlert.vue
In my blade file I'm using it as
Except for real-time update everything else is working. If I refresh notifications are properly fetched and notification alert is properly displayed. But when Notification event occurs notification doesn't render on view without reloading but if I print the notification object in console it works perfectly fine. Any suggestion or help would be appreciated. Thanks