Avoid subsequent initializations of notification center
Hi!
We have integrated the notification center in our vue 3 project.
The problem we have is that in each change of router, a new session is generated, since by architecture, we have the notification center in a component that triggers the mounted cycle event for each change of router.
Is there a way to for example, save the JWT in the first initialization and reuse it in subsequent mounted avoiding subsequent initializations?
Thanks.
3 Replies
@ludu could you please share the minimal code in codesandbox so we can debug?
I resolved it, changing the component hierarchy and with absolute positioning of the novu bell. I was asking the question for if exists any extra ws connection configuration. Anyway, thank you for your time!
@ludu, you just advanced to level 1!