What’s the most efficient way to search for a component? I want to first check the page, then if not found there check the file, and then if not there check if it exists in a team library.
I’ve tried to use ChatGPT to help me, but the code it’s given me really slows down the plugin (and currently it’s only searching page and file - if I add team library as well, it’s gonna be painful!).
Feels like this would be a common scenario for plugins, so wondering if anyone has any efficient or best practice code they’d be willing to share?
Apologies if I’ve missed an obvious snippet from this site.
Thanks in advance!