You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm not fond of hard coded string usage--especially in reference to code components because editors don't link the two. And code helpers like autocomplete, find references etc don't work w/ the string references.
I'm finding myself using the following to pass component references:
@jeremygiberson you can accomplish this using .name, which exists on classes. this could be moved into ape itself, so the queries will extract a .name if the filter isn't type string, but you should be able to do getOne(Components.GameInfo.name)
I'm not fond of hard coded string usage--especially in reference to code components because editors don't link the two. And code helpers like autocomplete, find references etc don't work w/ the string references.
I'm finding myself using the following to pass component references:
Which I can make do with, but obviously I'd prefer if the library accepted either form (string or class) and got the type itself. Ie,
The text was updated successfully, but these errors were encountered: