Utility function for loading Discord chunks (#2017)

This commit is contained in:
Nuckyz 2023-11-27 02:56:57 -03:00
parent 1b179f3c6d
commit 1619ee404a
No known key found for this signature in database
GPG key ID: 440BF8296E1C4AD9
4 changed files with 118 additions and 27 deletions

View file

@ -23,7 +23,7 @@ export function LazyComponent<T extends object = any>(factory: () => React.Compo
return <Component {...props} />;
};
LazyComponent.$$get = get;
LazyComponent.$$vencordInternal = get;
return LazyComponent as ComponentType<T>;
}