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