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

May 10, 2023

+1 Having the same issue. This thread started in 2021 and no response from Figma team.

djv
Figmate
Community Support
May 10, 2023

Hey @Marlon4,

We responded most recently on April 4th:

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 stays prioritized. Stay tuned and keep an eye on our Release Notes where we’ll post all major updates: https://releases.figma.com/

Tiffany10
New Member
May 12, 2023

+1 still need this

(keeping this open!)

Tiffany10
New Member
May 12, 2023

+1 still need this - such a pain to create a workaround for every “reset”

Froukje_Temme
May 17, 2023

Please enable this, it’s really needed!!

May 19, 2023

Please implement this. Without it, many prototypes end up looking VERY unprofessional when presenting to stakeholders. It’s mind boggling this hasn’t been a priority for Figma.

djv
Figmate
Community Support
May 24, 2023

Hey All,

Thank you for your patience! Today, we released State management for prototypes, including State reset!

When users are navigating through prototypes, an object’s state may need to be reset on specific interactions. Object states should be reset on the interaction that navigates to the next frame.

  1. Click on a prototype connection to open the Interaction details panel.
  2. In the State Management section of the panel, check off any of the following settings:
  3. Reset scroll position: Reset to original scroll location
  4. Reset component state: Reset to original component state, as set on the canvas
  5. Reset video state: Restart the video from the beginning, and reset to its original play state
Claudio_Torres
New Participant
May 24, 2023

@dvaliao I don’t have these options in my interaction design Pannel, how we can activate this? My version is 116.9.5, any clue about how to get this cool feature?

Shane
ShaneAuthor
May 25, 2023

Lovely! Thanks so much for delivering on it 🎉

djv
Figmate
Community Support
May 25, 2023

Hi @Claudio_Torres,

The feature was slowly rolling out in batches, but should have been available by the end of the day. Have you refreshed and been able to get access yet?