a tool for shared writing and social publishing
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix mutate name conflict

+3 -3
+3 -3
app/home/LeafletOptions.tsx
··· 22 22 isTemplate: boolean; 23 23 loggedIn: boolean; 24 24 }) => { 25 - let { mutate } = useIdentityData(); 25 + let { mutate: mutateIdentity } = useIdentityData(); 26 26 let [state, setState] = useState<"normal" | "template">("normal"); 27 27 let [open, setOpen] = useState(false); 28 28 let smoker = useSmoker(); ··· 77 77 onSelect={async () => { 78 78 console.log(props.loggedIn); 79 79 if (props.loggedIn) { 80 - mutate( 80 + mutateIdentity( 81 81 (s) => { 82 82 if (!s) return s; 83 83 return { ··· 92 92 { revalidate: false }, 93 93 ); 94 94 await removeLeafletFromHome([props.leaflet.id]); 95 - mutate(); 95 + mutateIdentity(); 96 96 } else { 97 97 hideDoc(props.leaflet); 98 98 }