Skip to main content
Question

[Memory usage] How does Figma load components with instance swap properties and parent components with child components that have many variants?

  • November 14, 2024
  • 0 replies
  • 35 views

Raganit_Christina

I’m working on a UI kit at work (which I unfortunately cannot share) and I am hoping to better understand how to best structure components on Figma so that they do not require significant memory consumption. We are running into problems where our prototypes are loading really slowly and I think this might be because the current way we are building components is very memory intensive.

I am hoping to better understand specifics about how Figma loads in components to make better decisions about how to structure the components of the UI Kit. According to a comment in this thread, when you make an instance of a component, Figma loads in the entire variant set of the component.

I’m wondering how Figma behaves or loads in components in the following scenarios:

  1. If a parent component has a child component with many variants, do all the variants of the child component get loaded in when an instance of the parent component is created?
  2. How does Figma load components with an instance swap property? If an instance of such a component is created, do all the layers of the preferred instances set up in the instance swap property get loaded in?

Thanks in advance.

This topic has been closed for replies.

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