Add name and displayName props to known modules
This makes it wildly easier to find what you are looking for in react devtools
Before
After
*not all of those names are provided by this pr, only the ones used in vencord are
I feel like this would be the most useful to people who are new to working with discords code, as they wouldn't feel completely lost with all the minified names
this api is really weird. especially the option for findComponentLazy is misleading
ready for review
this api is really weird. especially the option for findComponentLazy is misleading
all changes to discord's components are LazyComponent(() => x) -> LazyComponent(() => wrapDiscordComponentName(x, "Name")), which is also the change inside findComponentLazy, it'd make more sense if the argument was in LazyComponent no? and no need for an opts object in that case, I think
in that case you also have a fallback for LazyComponent itself which doesn't need to pollute discord