We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 70f33b7 commit ace68b7Copy full SHA for ace68b7
docs/app/components/Feedback/Feedback.tsx
@@ -49,6 +49,14 @@ export const Feedback = ({ location }: FeedbackProps) => {
49
}
50
}, [])
51
52
+ React.useEffect(() => {
53
+ setSelected(null)
54
+ /**
55
+ * if the location changes, reset the selected state
56
+ * otherwise you vote once somewhere and can never do it again
57
+ */
58
+ }, [location])
59
+
60
return (
61
<div>
62
<Heading
0 commit comments