how to revalidate a path (revalidatePath )with params
Unanswered
Almond stone wasp posted this in #help-forum
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 wasp i want to revalidate the path below but seems it not working, when i refresh manually then only it works
js
// 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}`)
im slightly confused... do you expect the path to regenerate at point of run (as it just deletes cache but doesn't actually run it again)
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