Skip to main content
Solved

Swap Instance - "No results" - missing local components

  • April 30, 2024
  • 2 replies
  • 289 views

Dustin_Hansen2

I’m using a slot in a component so I can swap it out with another component instance (since it’s impossible to add anything inside a component instance).

Seems like a viable workaround. The problem is, the component instance does not show up in the list when I search for it under “Swap instance” and I have no idea why.

Also, I noticed that sometimes the option to select “Local components” (to show only those results, instead of a library) is missing. Again, no idea why.

In other files it looks like this:

Any help is appreciated.

Best answer by Haroll

Hi @Dustin_Hansen2

Regarding Local component not showing up

Local component option only appear when there is at least one component in the entire file. Taking a deeper look at your screenshot it seems that your file has only one page (Page 1) with 2 component instance inside. (instance have a losange before their name while main component have a diamond: 💠). That’s why you cannot see the option Local component

“No result”

Since you don’t have any component in your file, it means that Tooltip.multiple-errors main component isn’t located in this file. Are you sure you added all the library needed for your project? ( Enable a library in a design file )

Hope it helped

View original

2 replies

Haroll
  • Active Member
  • 273 replies
  • Answer
  • May 2, 2024

Hi @Dustin_Hansen2

Regarding Local component not showing up

Local component option only appear when there is at least one component in the entire file. Taking a deeper look at your screenshot it seems that your file has only one page (Page 1) with 2 component instance inside. (instance have a losange before their name while main component have a diamond: 💠). That’s why you cannot see the option Local component

“No result”

Since you don’t have any component in your file, it means that Tooltip.multiple-errors main component isn’t located in this file. Are you sure you added all the library needed for your project? ( Enable a library in a design file )

Hope it helped


Dustin_Hansen2
  • Author
  • New Participant
  • 19 replies
  • May 2, 2024

Hi @Haroll , thanks for the reply.

My intent was to swap one instance for another instance.

I realize now that it doesn’t work that way - you can only swap one instance for another component.

(Seems a little counter-intuitive to me, and feels like a bug or missing feature, but I think I get it now.)

thanks again.


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings