Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

(bug) revalidatePath + redirect doesn't revalidate #543

Closed
hi-ogawa opened this issue Jul 11, 2024 · 0 comments · Fixed by #544
Closed

(bug) revalidatePath + redirect doesn't revalidate #543

hi-ogawa opened this issue Jul 11, 2024 · 0 comments · Fixed by #544

Comments

@hi-ogawa
Copy link
Owner

hi-ogawa commented Jul 11, 2024

See hi-ogawa/rsc-on-vite#15

Note that this is only for "js" case, so we probably have some easy way around this.
For example, we could probably pass revalidatePath info to browser on redirection, then pass that back during the browser history push:

$__startActionTransition(async () => {
(async () => {
const response = await fetch(request);
const location = response.headers.get(ACTION_REDIRECT_LOCATION);
if (location) {
history.push(location);
return;
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant