#server component doesnt refetch on navigation

33 messages · Page 1 of 1 (latest)

idle adder
#

why?

wary spadeBOT
#

🔎 This post has been indexed in our web forum and will be seen by search engines so other users can find it outside Discord

🕵️ Your user profile is private by default and won't be visible to users outside Discord, if you want to be visible in the web forum you can add the "Public Profile" role in id:customize

✅ You can mark a message as the answer for your post with Right click -> Apps -> Mark Solution
(if you don't see the option, try refreshing Discord with Ctrl + R)

idle adder
#

export const dynamic = 'force-dynamic'

#

this doesnt do anything

primal turret
#

would you mind sharing a bit of code?

idle adder
#

revalidation is required. i love next more and more by day

#

even then

#

i have a problem

#

when i do revalidatePath the whole page flashes

#

which i do not want

#

i need it to happen in the background

#

is there a way for this happen?

#

Because I do not need immediate revalidation, however it must be so that if a user navigates to Y page when they return to X the data for X is updated

#

I cant find any way to force this without revalidatePath...

idle adder
#

bump

idle adder
#

bump

tranquil vortex
#

lol yeah its annoying i have the same bug

#

export const dynamic = 'force-dynamic'

#

is that suppose dto fix it @idle adder

#

?

idle adder
#

you must revalidate

#

as far as i know that is the only way

#

very annoying

tranquil vortex
#

what the fk

idle adder
#

maybe theres some other way, i dont know

#

cause im having a case where i go to a different page

#

and then i go back to the old one

#

and the data there is empty cause its old

#

so now i just revalidatePath

#

but

#

that causes an issue where it seems to flash the page for some reason

idle adder
#

bump