@ -15,6 +15,8 @@ export function useRefreshSettings(routeId: string = paths.INDEX) {
|
||||
const routeData = useRouteLoaderData(routeId) as typeof settings
|
||||
|
||||
if (!ctx) {
|
||||
// Intended to stop the world
|
||||
// eslint-disable-next-line
|
||||
throw new Error(
|
||||
'useRefreshSettings must be used within a SettingsAuthProvider'
|
||||
)
|
||||
|
Reference in New Issue
Block a user