Next.js Discord

Discord Forum

how to revalidate a path (revalidatePath )with params

Unanswered
Almond stone wasp posted this in #help-forum
Open in Discord
Almond stone waspOP
i want to revalidate the path below but seems it not working, when i refresh manually then only it works

// I want to revalidate this
http://localhost:3000/integrations/zoom?code=26_FuoqpUHxtHXa0DVeopZeWwGqANLzWtKoJmfIoHSc

// I am doing this: (code i am getting in arguments)
 revalidatePath(`/integrations/zoom?code=${code}`)

5 Replies

Almond stone waspOP
yeah
@Almond stone wasp yeah
you would have to run a fetch or something to manualy run it then (because revalidate is just rm cache)
Almond stone waspOP
i am using it in server action btw
@Almond stone wasp i am using it in server action btw
nice, but it won't run your page after revalidate is all