mirror of
https://github.com/VickScarlet/lifeRestart.git
synced 2026-08-29 10:04:43 +08:00
update: game core flow pages
This commit is contained in:
@@ -4,6 +4,8 @@ import type { ProfileState } from '@remake/core'
|
||||
|
||||
const profileAtom = atom<ProfileState | null>(null)
|
||||
|
||||
export const useRawProfile = () => useAtom(profileAtom)
|
||||
|
||||
export const useProfile = () => {
|
||||
const [profile, setProfile] = useAtom(profileAtom)
|
||||
if (!profile) throw new Error('Profile is not loaded')
|
||||
|
||||
Reference in New Issue
Block a user