-
-
Notifications
You must be signed in to change notification settings - Fork 5
Open
Description
example of code
`
import { useSignalR } from '@dreamonkey/vue-signalr'
import { SignalRNotificationType } from '@/enums/SignalRNotificationType'
import { Toast } from '@/services/SwalHelper'
const store = useLaborantIncomingStore()
const signalr = useSignalR()
const defaultNotificationHandler = (type: SignalRNotificationType, message: string) => {
if (type == SignalRNotificationType.NewBidResults) {
Toast.fire({ icon: 'info', text: JSON.parse(message)?.Message })
}
}
signalr.on('SendNotification', defaultNotificationHandler)
signalr.off('SendNotification', defaultNotificationHandler)
`
expected behavior: ignore callback
current behavior: callback is still working
for vue component i'm using composition api
Metadata
Metadata
Assignees
Labels
No labels