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

John_McCusker
June 26, 2022

confirmed this works

Daniel_Guerra_Galan
July 1, 2022

Great Idea! It works but only if you long press the mouse button. If you click fast like you normally do it will only do the touch down action but not the touch up action. Am i missing something?

Thanks for sharinf your tip.

James_Lytle
July 6, 2022

+1 for me too.

I’m trying to make a fairly simple toast notification component, but it seems like its impossible as a standalone component.

A button opens the modal toast, but when its finished and I use the button again, it always ends up on the last interactive frame.

Jeroen_Nelen
July 13, 2022

+1, very annoying having to always start my prototype flow from scratch to assure all interactive components are reset/back at the start.

Jeroen_Nelen
July 13, 2022

+1, please provide a fix for this. Very annoying for heavily animated prototypes.

Geoff_Colbath
July 15, 2022

I, too, would love to have this functionality. I’m currently designing a multi-screen workflow with a top and side nav — the latter of which can be collapsed / expanded to hide / show text labels for the links, respectively. In implementation, the nav drawer would maintain either its collapsed or expanded state while traversing the screens that nav drawer governs. But, in my prototype, if you open the drawer, and navigate to another screen, the drawer on that screen will be collapsed. It lends itself to a feeling of brokenness when navigating the prototype — and will, in my experience, be something on which we’ll need to spend unnecessary time explaining to clients during moderated user tests.

Tiffany10
New Member
July 21, 2022

+1 this issue keeps coming up for me as well

Lukas_Hiereth
August 3, 2022

+1 for me too

Reymond_Felizardo
August 4, 2022

+1 Having the same problem creating a drop down menu.

Luca_Salce
August 10, 2022

+1 for this feature. We have a complex form where interactive components work well for radio and checkboxes but maintaining values in textFields require this feature.