Skip to main content
Shane
February 26, 2021

LAUNCHED: State management for prototypes

  • February 26, 2021
  • 205 replies
  • 21529 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

Crystal5
June 6, 2022

I can’t get it to reset either. @Figma_Support please help.

Jake_Albo
June 7, 2022

Agreed. Exactly what I am trying to build and it just created a MAJOR roadblock

Frannn
New Participant
June 9, 2022

+1 on this. I’m working on an app intro, basically a looping sequence of a few animated components using “after delay” interactions and smart animate (it’s awesome what can be done with Figma these days, by the way). Works fine on a first round, shows components in their final state after on. Kind of a show stopper.

Lauren_Aldrich
June 9, 2022

Does anyone know how to elevate/change this to a topic that can receive votes? Or how to get @Figma_Support to chime in or help?

burakkuyucakli
June 16, 2022
Aram_Brazilian
June 17, 2022

Same problem.

I open a drop-down menu on a frame, click a link in it to a different frame, and then when I click a link back to the original frame the menu is stuck open from before.

Honestly, this (interactive components) is the main reason I was switching to Figma from Sketch + Invision - if I am back to creating a static frame for every state, then I might as well stick with Invision…

Tom_Byers
June 17, 2022

+1 from me.
There’s a frame in my prototype that when a user navigates to it, I want everything in its base/starting state, regardless of what they might have interacted with previously.

Michael_Patrick_Ayobami
June 22, 2022

This problem still persists. it is sad I seems stuck, found a couple of workarounds but it doesn’t do it for me.

Kay5
June 23, 2022

+1
a really needed feature

Nico008
June 23, 2022

+1
Same issue. It would very very useful