website refactor

This commit is contained in:
2026-01-16 01:00:03 +01:00
parent ce7be39155
commit a98e3e3166
286 changed files with 5522 additions and 5261 deletions

View File

@@ -74,11 +74,10 @@ export function useInjectAll<T>(serviceIdentifier: string | symbol): T[] {
export function useInjectOptional<T>(token: symbol): T | null {
const container = useContext(ContainerContext);
if (!container) {
return null;
}
return useMemo(() => {
if (!container) {
return null;
}
try {
return container.get<T>(token);
} catch {