mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
chore: deprecate useController (#1850)
This commit is contained in:
@@ -10,6 +10,9 @@ import { useContext, useEffect, useMemo, useRef } from 'react';
|
||||
import { appContext } from './AppContext';
|
||||
import type { ExtractInitArgs, IDestructibleController, IInitializableController, IServiceConstructor } from './IApp';
|
||||
|
||||
/**
|
||||
* @deprecated use hooks instead
|
||||
*/
|
||||
export function useController<T extends IInitializableController>(ctor: IServiceConstructor<T>, ...args: ExtractInitArgs<T>): T;
|
||||
export function useController<T>(ctor: IServiceConstructor<T>): T;
|
||||
export function useController<T>(ctor: IServiceConstructor<T>, ...args: any[]): T {
|
||||
|
||||
Reference in New Issue
Block a user