title: auto
des: auto note:auto
This commit is contained in:
@@ -102,19 +102,19 @@ export default function HomeView() {
|
|||||||
loadDataProfile(setProfile);
|
loadDataProfile(setProfile);
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
const [foto, setFoto] = useAtom(gs_fotoProfile);
|
// const [foto, setFoto] = useAtom(gs_fotoProfile);
|
||||||
useShallowEffect(() => {
|
// useShallowEffect(() => {
|
||||||
if (profile?.imagesId === undefined) {
|
// if (profile?.imagesId === undefined) {
|
||||||
return myConsole("Waiting data");
|
// return myConsole("Waiting data");
|
||||||
} else {
|
// } else {
|
||||||
getFotoProfile(profile?.imagesId).then((v) => setFoto(v?.url));
|
// getFotoProfile(profile?.imagesId).then((v) => setFoto(v?.url));
|
||||||
}
|
// }
|
||||||
}, [profile?.imagesId]);
|
// }, [profile?.imagesId]);
|
||||||
|
|
||||||
const [listPorto, setListPorto] = useAtom(gs_ListPortofolio)
|
// const [listPorto, setListPorto] = useAtom(gs_ListPortofolio)
|
||||||
useShallowEffect(() => {
|
// useShallowEffect(() => {
|
||||||
loadListPortofolio(profile?.id).then((res) => setListPorto(res));
|
// loadListPortofolio(profile?.id).then((res) => setListPorto(res));
|
||||||
}, [profile?.id]);
|
// }, [profile?.id]);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
|
|||||||
Reference in New Issue
Block a user