Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to show view available in viewStack

Hi,

I have a 4 views and 4 buttons.

view-hirarchi.pngwhen app start only one view in stack

viewStack : ["VIEW1"]

when we click button "open view 2"

viewStack : [ "VIEW2", "VIEW1" ]

when we click button "open view 3"

viewStack : ["VIEW3", "VIEW2", "VIEW1" ]

but when i again click on "open view 2"

viewStack : [ "VIEW2","VIEW3", "VIEW2", "VIEW1" ]

THAT IS THE PROBLEM

is there any way to reuse VIEW 2 from viewStack?

every view has some network task. so loading view every time is not a good idea.

thanks in advanced. for any help. 

i have searched a lot but nothing in hand. 

0 Kudos
Need Assistance?
Welcome to the Roku Community! Feel free to search our Community for answers or post your question to get help.

Become a Roku Streaming Expert!

Share your expertise, help fellow streamers, and unlock exclusive rewards as part of the Roku Community. Learn more.