Skip to main content

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

ParameterType
user?SCUserType

Returns

object

MemberType
all() => SCUserSettingsType
get(p) => any
isLoading() => boolean
refresh() => void
update(p, v) => Promise<any>

Source

packages/react-core/src/hooks/useSCSettingsManager.ts:21