API Reference > ui-core > Settings > useSaveBeforeActivatingNewSettingsTab useSaveBeforeActivatingNewSettingsTab Function Beta Hook to use within Settings Page component to allow saving the current page's data before loading to the requested Setting Tab's page. useSaveBeforeActivatingNewSettingsTab(settingsManager: SettingsManager, saveFunction: (tabSelectionFunc: (args: any) => void, requestedSettingsTabId?: string) => void): void Parameter Type Description settingsManager SettingsManager saveFunction (tabSelectionFunc: (args: any) => void, requestedSettingsTabId?: string) => void Returns - void Defined in ui/core/src/ui-core/settings/SettingsContainer.tsx Line 43 Last Updated: 12 June, 2024