N
Novu4w ago
Noah-Haf

Prevent Flashing on NextJs app.

Hi, when trying to use the Inbox component I keep experiencing a problem where the bell flashes into existence, it's annoying. Is there anything I can do to combat this?
14 Replies
Noah-Haf
Noah-HafOP4w ago
Also why is there content shifting when content is marked as read and why does the tooltip go all glitchy?
Noah-Haf
Noah-HafOP4w ago
Tomer Barnea
Tomer Barnea4w ago
Hi @Noah-Haf , not sure about the second one, @Pawan Jain , can you help out here? As for the first, can you confirm the flash occurred after subscriber id is available in the context of your app?
Noah-Haf
Noah-HafOP4w ago
Good evening - I'm using a react server component, so it should be available immediately.
Tomer Barnea
Tomer Barnea4w ago
Ok, I’ll let @Pawan Jain take the lead, he should have better ways to investigate this 👀 Good evening 🌆
Noah-Haf
Noah-HafOP4w ago
Additionally if it helps this is an example of the content shifting about.
Noah-Haf
Noah-HafOP4w ago
Any update on this?
Pawan Jain
Pawan Jain4w ago
@Noah-Haf Novu <Inbox /> is client-only component. 1. first issue - the bell flashes into existence is due to delayed hydration 2. second issue - tooltip content shifting is a bug that I can reproduce, and checking with my team on this. I will keep you updated
Noah-Haf
Noah-HafOP4w ago
Much appreciated, Is there any way to counter the flashing?
Novu_Bot
Novu_Bot4w ago
@Noah-Haf, you just advanced to level 1!
Pawan Jain
Pawan Jain3w ago
Linking this with internal linear ticket
Linear
Linear3w ago
Found issue NV-6461.
NV-6461 - 🐛 [Inbox] Fix tooltip content layout shift
@pawan said:
2. Tooltip content layout shft - I can reproduce this, and it looks like it is a bug
c3884b68-3c1f-43c5-92e0-b3a23afb7438 0aeb7810-0840-49fb-b9d6-717912abf058
Status
Triage
Workflows
Noah-Haf
Noah-HafOP3w ago
Much appreciated.
Pawan Jain
Pawan Jain6d ago
small updated: tooltip content layout shift is fixed in this PR https://github.com/novuhq/novu/pull/8943

It will be fixed in the new @novu/react version

Did you find this page helpful?