Skip to main content
Rachel_Ko
November 19, 2024
Question

When updating the main component, the instance of it resets to something different

  • November 19, 2024
  • 18 replies
  • 1373 views

I am really confused. I have a component file where I keep all my main components. The main component looks like this:

However, when I update the component, publish the library, and then update the library in a different file that has this same component, it resets to an old version of the component:

the properties are different, and the caret icon there is something that I used long ago. I checked the links of the components and there is no “hidden” link, I’m genuinely so confused and frustrated lol

This topic has been closed for replies.

18 replies

KennLucas
November 19, 2024

Sounds simple. But have you ever cleared your cache in Figma?

I would start there and see if it helps.

Make sure you shut Figma down completely before running the script.

Figma Learn - Help Center
KennLucas
November 19, 2024

What happens if you right click in the instance and choose “go to component”?

Does it find the component or does it go to your library but not find the component?

Rachel_Ko
Rachel_KoAuthor
November 19, 2024

When I right click the instance and go to the main component, it goes to the library to the exact main component. which is how it should look. but the instance looks different. which is why im so CONFUSED.

KennLucas
November 19, 2024

Yup. That screams cached data.

Try clearing the chache.

Rachel_Ko
Rachel_KoAuthor
November 19, 2024

i just cleared the cache, its doing the same thing it didn’t get fixed. here is a video pls help 😭 😭 😭 😭 😭 😭

Jumpshare
Rachel_Ko
Rachel_KoAuthor
November 19, 2024

the version the instance is reverting to is definitely an older version of the component. its missing some of the newer properties i set up in the main component. 😭

KennLucas
November 20, 2024

That is really confusing and not very clear as to how you are using the instance or the component. From the video it looks like you are copying and pasting the component. ??? Not that you are dragging in an instance in the assets.

We cannot see the left sidebar to tell what is a component and what is an instance. It is also rather odd to see the component acting like that. We need the whole screen and more than the fast clip like that to be able to help.

If you can share the file we can check it out. That is going to be the only way.

Rachel_Ko
Rachel_KoAuthor
November 21, 2024

the file is from work so it’s confidential but I will see if I can get permission to share. side question; is there a difference between copy pasting and dragging the instance from asset library? if i copy paste, the component shows like this meaning it’s an instance if I’m not mistaken.

KennLucas
November 21, 2024

That should be correct, yes.

Sometimes if you copy a component and paste it to a different file, it actually pastes as a component, not as an instance. But your shows as an instance, yes.

Thanks for sharing that.

KennLucas
November 21, 2024

This is the part of your post that causes us some confusion.

“and then update the library in a different file that has this same component, it resets to an old version of the component”

It says component. A lot.

So which file really has the component?

Is the source library the home of the component?

Then there should not be a “same component” in a different file.

I might suggest a test where you create a file, set the library sources in assets, and the DRAG THE INSTANCE FROM THE ASSETS SIDEBAR.

Sorry for the all caps there.

But try it this way and not with copy paste.

Try it in your existing file.

Then try it in a totally new file.

See if you get different results.