Skip to main content
Shane
February 26, 2021

LAUNCHED: State management for prototypes

  • February 26, 2021
  • 205 replies
  • 21530 views

Just struck a pretty simple use case/scenario where I need the component to reset it’s state when I leave the frame. This has been touched on elsewhere, but this is such a common and key use that I thought I’d put it in it’s own thread.

Scenario:
I’ve got a dropdown menu with three items in it, with each item changing what columns are visible in a table and some other control states. I have three frames, each with a view of the table setup as it should be, and want to use the dropdown items to navigate between the frames - basically faking the table state change. All of this works perfectly, however when I navigate back to a previous table view state, the dropdown component is already in it’s open state - not what I want.

Current workaround: none that I can come up with (other than not using interactive components at all for this, and just using multiple frames for the dropdown open/closed states as I would previously)

Suggestions:

  1. Have a “reset component on leaving this frame” setting for instances of a component on a frame - useful for this situation and others, but needs to be a setting so that components that should keep their state between frames can do so (light/dark toggle maybe? Something like that).
  2. Do it all in a single frame, with the dropdown component changing the the state of the table component - no frame navigation required. Would work nicely for the particular use case I’m working with here, but not sure it would solve all similar situations.
  3. Do both 1 and 2. This solution is my preferred solution 😉 😆

EDIT:
Other threads that relate:

205 replies

Stefano_Lucente
New Member
April 4, 2023

Need to add a +1 to this, working on a multi-selection component with select all/clear all button and obviously that falls into this case!

April 4, 2023

I have the exact same question. Any help is appreciated. Thanks!

djv
Figmate
Community Support
April 5, 2023

Thank you all for your feedback!

Our team has confirmed that interactive components memorize their state “forcibly”, and there is currently no way to reset it.

Fortunately, this is already something they’re working on. While we can’t guarantee a timeline on our end, the team will continue to monitor this thread and use your Votes to ensure it’s prioritized.

Stay tuned and keep an eye on our Release Notes where we’ll post all major updates: https://releases.figma.com/

Giovanni1
April 5, 2023

Thank you for replying, after all these years.

I think it’s important to understand that the lack of this feature (or the lack of thought behind how things “work” now) makes Figma inadequate for many prototyping situations, therefore the need to move to a different app for making it work.

April 13, 2023

Any workaround for this?

April 28, 2023

+1 all of the workarounds suggested seem like a pain in the butt… It could be so simple 😦

April 30, 2023

+1 I’ve been unable to have a truly interactive dropdown that lets me switch between frames. + The fact that interactive components states are lost when nested inside another interactive component.

Jeff_Deibel
New Member
May 1, 2023

+1 The ability to control when a component state persists and resets is a very useful preset that would aid in my prototype creation flows and eliminate tedious work arounds.

Morgan_Hirtle
May 2, 2023

+1 Need to be able to reset components on action.

Julia_Shlyapnikova
Active Member
May 5, 2023

+1 I could really use that, too
This time I have an interactive component that is supposed to display a countdown (3…2…1…Go!), so it must restart from the beginning every time, it is time-sensitive and only relies on “after delay”. Only works once, then just shows “Go” all the time 😑