Next.js Discord

Discord Forum

flickering button (localstorage)

Unanswered
XotEmBotZ posted this in #help-forum
Open in Discord
I have this button in a layout.tsx. When even i change the page (within the same layout) the button flikers. is there a way to stop the flikering?

8 Replies

Here I want to refresh the pages (as those need refreshed localstorage content) but it dosent auto refreshes
Hello Anyone?
Can you capture that flicker in a gif or mp4?
Where is Button from, custom made or UI library component?
Button is from scadcn
@Raymond Where is `Button` from, custom made or UI library component?
Similar thing is happening in other compoenents in the project
I have tried using use hook from react but cant get it to work as any type of promise I make (already tried using useMemo with use) it just keeps rehitting the promise over and over without actually hitting it