hooks/useSCSettingsManager
Functions
useSCSettingsManager()
useSCSettingsManager(
user
?):object
info
This custom hook is used to manage user settings.
How to use it:
Follow these steps:
1. const scUserContext: SCUserContextType = useSCUser();
2. const scSettingsManager: SCSettingsManagerType = scUserContext.manager.settings;
3. scSettingsManager.all()
Parameters
Parameter | Type |
---|---|
user ? | SCUserType |
Returns
object
Member | Type |
---|---|
all | () => SCUserSettingsType |
get | (p ) => any |
isLoading | () => boolean |
refresh | () => void |
update | (p , v ) => Promise <any > |