Skip to content

Commit

Permalink
Remove shouldRevalidate on tag page so vote buttons work
Browse files Browse the repository at this point in the history
  • Loading branch information
johnwarden authored and mergify[bot] committed May 28, 2024
1 parent f4f9579 commit 4019993
Showing 1 changed file with 0 additions and 9 deletions.
9 changes: 0 additions & 9 deletions app/routes/tags+/$tag_.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,3 @@ export default function TagPage() {
)
}

export const shouldRevalidate: ShouldRevalidateFunction = (args: {
formAction?: string | undefined
}) => {
// Optimization that makes it so /votes don't reload the page
if (args.formAction == '/vote') {
return false
}
return true
}

0 comments on commit 4019993

Please sign in to comment.