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

Edmund_Cura
January 25, 2023

I am prototyping a drop down menu with a double-sided slider function component. I kind of hit a dead-end due to this issue, I my slide component just couldn’t maintain a default or current state when I want it to. I definitely want this feature be added with future updates.

y_yc
New Member
January 31, 2023

+1
Hope fix this bug asap 🥲

Gareth1
February 1, 2023

Same issue here. I just want the component to return to the initial variant when I come back to it’s frame.

boris10
February 2, 2023

+1 It’s a shame the simple checkbox “Reset target frame” is not here yet after more than 1.5 years since this long topic has been started.

Do_Good_Design_Co
February 3, 2023

+1(million)

Stephane2
February 5, 2023

Our concern with Adobe’s takeover was how plans were going to be handled.
But now we know that the only thing that will have changed is that they will process user requests as they always have. Which mean they won’t.

Krasnov_Alexei
February 8, 2023

This needs to be addressed. Should be as simple as how Flinto does it - a tickbox for “Leaving causes reset”

Becky3
February 9, 2023

a totally missing feature for components and prototype in Figma.
upvote it 🙏

Yannic
New Participant
February 15, 2023

I still have the same problem as described in this thread…………

Mike_Gilbert
New Member
March 1, 2023

+1 from me too