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

Roland3
November 15, 2022

+1 frustrating if you spent some hours on a prototype only to discover such a simple thing is not possible

Jake_Snyder
November 16, 2022

+1 Would save on some frames.

James_Debono
November 21, 2022

+1 for this

Sam_Rousseau
November 21, 2022

Me too - I only use interactive components for hover states.

Tim_Ruiters
November 22, 2022

Why is this still not possible? It can be a simple checkbox “force state” for the frame you want to force the selected state, so you can also keep track of the state if you want to.

Berlinguette_David
New Participant
November 22, 2022

I’m going to guess that Adobe’s recent acquisition is going to slow down (e.g. Halt) these essential requests. I’m also going to guess that Adobe will be slower to respond in general once they’re at the helm, but hopefully I’m wrong.

AverySmith
December 1, 2022

+1 Would love a fix for this situation. Perhaps a Prototype option on each page to “Reset properties when navigating” in the side panel under where you set them? I am building a tabbed sidebar with a map behind it.

After trying multiple proposed workarounds, nothing worked for what I’m trying to accomplish. My sidebar was an interactive component but I ended up having to transform them into regular frames so I can use overlays to create the desired experience 😢

Screen Shot 2022-12-01 at 4.01.26 PM

AverySmith
December 1, 2022

+1 to this. I’ve tried multiple workarounds and nothing resolves this issue. I finally was forced to detach my interactive components and re-work them into frames and overlays.

Eric_Mullen
December 5, 2022

A huge + for this feature, as well! It really bugs me that even when I set the component state within a frame I link to, it resets anyway – like, I specifically set it to display as “x” on this frame, but it reverts to the default state when presenting.

Dylan1
December 6, 2022

My team just ran into this one as well, +1 for this needing a solution