remove warning

This commit is contained in:
Jacob Nguyen
2023-08-04 19:01:27 -05:00
parent 41344608c6
commit 5e011b471e

View File

@@ -80,11 +80,6 @@ export async function composeRoot(
}
export function useContainer<const T extends Dependencies>() {
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 <V extends (keyof T)[]>(...keys: [...V]) =>
keys.map(key => useContainerRaw().get(key as keyof Dependencies)) as IntoDependencies<V>;
}