title: auto
des: auto note:auto
This commit is contained in:
@@ -111,16 +111,22 @@ export default function HomeView() {
|
|||||||
|
|
||||||
const [foto, setFoto] = useAtom(gs_fotoProfile);
|
const [foto, setFoto] = useAtom(gs_fotoProfile);
|
||||||
useShallowEffect(() => {
|
useShallowEffect(() => {
|
||||||
if (profile?.imagesId === undefined) {
|
getFoto(profile?.imagesId);
|
||||||
return myConsole("Waiting data");
|
// if (profile?.imagesId === undefined) {
|
||||||
} else {
|
// return myConsole("Waiting data");
|
||||||
getFoto(profile?.imagesId);
|
// } else {
|
||||||
}
|
// getFoto(profile?.imagesId);
|
||||||
|
// }
|
||||||
}, [profile?.imagesId]);
|
}, [profile?.imagesId]);
|
||||||
|
|
||||||
async function getFoto(id: string) {
|
async function getFoto(id: string) {
|
||||||
const data = await getFotoProfile(id);
|
if(id === undefined){
|
||||||
setFoto(data);
|
return myConsole("Waiting data")
|
||||||
|
} else {
|
||||||
|
const data = await getFotoProfile(id);
|
||||||
|
setFoto(data);
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// const [listPorto, setListPorto] = useAtom(gs_ListPortofolio);
|
// const [listPorto, setListPorto] = useAtom(gs_ListPortofolio);
|
||||||
|
|||||||
Reference in New Issue
Block a user