mirror of
https://github.com/toeverything/AFFiNE.git
synced 2026-07-17 01:56:27 +08:00
chore: upgrade to eslint9 (#9163)
This commit is contained in:
@@ -18,6 +18,7 @@ export function useFramework(): FrameworkProvider {
|
||||
export function useService<T extends Service>(
|
||||
identifier: GeneralIdentifier<T>
|
||||
): T {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
const stack = useContext(FrameworkStackContext);
|
||||
|
||||
let service: T | undefined = undefined;
|
||||
@@ -85,6 +86,7 @@ export function useServices<
|
||||
export function useServiceOptional<T extends Service>(
|
||||
identifier: Type<T>
|
||||
): T | undefined {
|
||||
// eslint-disable-next-line react-hooks/rules-of-hooks
|
||||
const stack = useContext(FrameworkStackContext);
|
||||
|
||||
let service: T | undefined = undefined;
|
||||
|
||||
Reference in New Issue
Block a user