Only revalidate if event update is valid

This commit is contained in:
Josh Hawkins 2024-10-12 09:27:02 -05:00
parent 48c60621b6
commit 299c52b2d0

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]);