#How to refresh React notifications when `subscriberId` changes?

1 messages · Page 1 of 1 (latest)

abstract herald
#

If I dynamically impersonate different users for a POC I am showcasing soon, the subscriberId changes but the list of notifications is still from the previous subscriberId. Storing the last used subscriberId in localStorage makes it easy to just reload the page and I see what I expect but I wonder how I can refresh the list of notifications when subscriberId changes.

bitter lindenBOT
#

@abstract herald, you just advanced to level 1!

light venture
abstract herald
light venture
#

Yes it should be used in NovuProvider

#

Are you using react component?

abstract herald