feat(settings): Add independent plugin to put loading system configuration in the lifecycle hook "app:created".

This commit is contained in:
Rafi
2023-04-18 10:29:09 +08:00
parent 9fe7943152
commit 76b865646c
8 changed files with 72 additions and 79 deletions

View File

@@ -7,8 +7,6 @@ export const useApiKey = () => useState('apiKey', () => getStoredApiKey())
export const useConversations = () => useState('conversations', () => [])
export const useSettings = () => useState('settings', () => {})
export const useUser = () => useState('user', () => null)
export const useDrawer = () => useState('drawer', () => false)