mirror of
https://github.com/Equicord/Equicord.git
synced 2025-06-17 02:17:03 -04:00
Utility function for loading Discord chunks (#2017)
This commit is contained in:
parent
1b179f3c6d
commit
1619ee404a
4 changed files with 118 additions and 27 deletions
|
@ -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>;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue