From 5e011b471eb8b7fca52daf39c1eabf7e450d0072 Mon Sep 17 00:00:00 2001 From: Jacob Nguyen <76754747+jacoobes@users.noreply.github.com> Date: Fri, 4 Aug 2023 19:01:27 -0500 Subject: [PATCH] remove warning --- src/core/ioc/dependency-injection.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/src/core/ioc/dependency-injection.ts b/src/core/ioc/dependency-injection.ts index 39eb497..a61e160 100644 --- a/src/core/ioc/dependency-injection.ts +++ b/src/core/ioc/dependency-injection.ts @@ -80,11 +80,6 @@ export async function composeRoot( } export function useContainer() { - console.warn(` - Warning: using a container hook (useContainer) is not recommended. - Could lead to many unwanted side effects. - Use the new Service(s) api function instead. - `); return (...keys: [...V]) => keys.map(key => useContainerRaw().get(key as keyof Dependencies)) as IntoDependencies; }