scsc holds the choice of subcategory when user is navigating.
Whenever user choose a subcategory, sc will be set with the subcateogry.
and pass the sc all the way on the navigation including creating and commenting, next page, etc..
And when the app needs to show the list (after create, edit, or clicking list button), show the subcategory of sc.
For instance, User clicked beta subcategory under qna forum. The sc is beta.
And the user goes to next page, then, creates a post and a comments,
And when the user clicked back to list button, then the app should show beta subcategory under qna forum.
So, the app needs to pass sc through all the navigation.
Another instance is that, the user goes to qna forum. The sc is emtpy. and you don't have to pass sc on the navigation.
and edit a post that has beta category.
after edit, the app shoud show qna forum list not the beta subcategory list because sc is empty.
sc
sc
holds the choice of subcategory when user is navigating. Whenever user choose a subcategory,sc
will be set with the subcateogry. and pass the sc all the way on the navigation including creating and commenting, next page, etc.. And when the app needs to show the list (after create, edit, or clicking list button), show the subcategory ofsc
.beta
subcategory under qna forum. Thesc
isbeta
. And the user goes to next page, then, creates a post and a comments, And when the user clickedback to list
button, then the app should showbeta
subcategory under qna forum. So, the app needs to passsc
through all the navigation.sc
is emtpy. and you don't have to passsc
on the navigation. and edit a post that hasbeta
category. after edit, the app shoud show qna forum list not thebeta
subcategory list becausesc
is empty.