@novu/headless: headlessService.fetchNotifications({onSuccess}) constantly receives latest state
Let me refine if we have an expected behaviour of
With code below we have
You can also notice that we have this line of code
Is there any other way to get constant updates of the notifications with their latest state?
fetchNotificationsWith code below we have
onSuccess invoked on every notifications update, it looks like socket used there, but there is no direct reference to it in the documentation. You can also notice that we have this line of code
listenNotificationReceiveChange(() => {}) - it's exactly the part that makes
onSuccesshandler invoked (asheadlessService?.fetchNotificationsoption)
Is there any other way to get constant updates of the notifications with their latest state?