Fix notification provider order, add comments (#1905)
* Fix notification provider order, add comments * Remove log
This commit is contained in:
parent
ab6e3f2c5d
commit
68767d597e
3 changed files with 61 additions and 45 deletions
|
@ -32,6 +32,7 @@ export const usePreferencesQueryKey = ['getPreferences']
|
|||
export function usePreferencesQuery() {
|
||||
const {agent, hasSession} = useSession()
|
||||
return useQuery({
|
||||
enabled: hasSession,
|
||||
queryKey: usePreferencesQueryKey,
|
||||
queryFn: async () => {
|
||||
const res = await agent.getPreferences()
|
||||
|
@ -83,7 +84,6 @@ export function usePreferencesQuery() {
|
|||
}
|
||||
return preferences
|
||||
},
|
||||
enabled: hasSession,
|
||||
})
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue