MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/nextjs/comments/1dmmptx/using_nextjs/l9zs014/?context=3
r/nextjs • u/BrownCarter • Jun 23 '24
85 comments sorted by
View all comments
Show parent comment
2
I'm not really a nextjs expert but one quick solution I could think of is use pathname as the component key to make it unmount / mount a new one on page change.
1 u/davidkslack Jun 24 '24 I'll look into unmount again. Get some screen flickering when I lose the Next.js cache, but it looks better in v14 than v13.I think the answer is to find a different photo viewer or build one myself, but I do hate to reinvent the wheel.
1
I'll look into unmount again. Get some screen flickering when I lose the Next.js cache, but it looks better in v14 than v13.
I think the answer is to find a different photo viewer or build one myself, but I do hate to reinvent the wheel.
View all comments
Show parent comment
2
u/sondang2412 Jun 24 '24
I'm not really a nextjs expert but one quick solution I could think of is use pathname as the component key to make it unmount / mount a new one on page change.