title: auto
des: auto note:auto
This commit is contained in:
@@ -97,10 +97,16 @@ export default function HomeView() {
|
|||||||
setToken(data);
|
setToken(data);
|
||||||
}
|
}
|
||||||
|
|
||||||
// const [profile, setProfile] = useAtom(gs_profile);
|
const [profile, setProfile] = useAtom(gs_profile);
|
||||||
// useShallowEffect(() => {
|
useShallowEffect(() => {
|
||||||
// loadDataProfile(setProfile);
|
// loadDataProfile(setProfile);
|
||||||
// }, []);
|
loadProfile()
|
||||||
|
}, []);
|
||||||
|
async function loadProfile() {
|
||||||
|
const data = await getProfile()
|
||||||
|
setProfile(data)
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
// const [foto, setFoto] = useAtom(gs_fotoProfile);
|
// const [foto, setFoto] = useAtom(gs_fotoProfile);
|
||||||
// useShallowEffect(() => {
|
// useShallowEffect(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user