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.
Also note that searching or accessing the team library isn’t possible through the plugins API. You can only save component keys while running the plugin in the library file and then import them in the file where you are working in. Or you can use REST API (by asking the user to authenticate, requires a server and websockets).
Also note that searching or accessing the team library isn’t possible through the plugins API. You can only save component keys while running the plugin in the library file and then import them in the file where you are working in. Or you can use REST API (by asking the user to authenticate, requires a server and websockets).
We use 3 different kinds of cookies. You can choose which cookies you want to accept. We need basic cookies to make this site work, therefore these are the minimum you can select. Learn more about our cookies.