Only revalidate if event update is valid (#14302)

This commit is contained in:
Josh Hawkins 2024-10-12 09:32:11 -05:00 committed by GitHub
parent 40bb4765d4
commit acccc6fd93
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -184,7 +184,9 @@ export default function Explore() {
const eventUpdate = useEventUpdate();
useEffect(() => {
mutate();
if (eventUpdate) {
mutate();
}
// mutate / revalidate when event description updates come in
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [eventUpdate]);