Skip to content

Advice for flexible nested workflow renderings #541

Answered by rjrjr
zoltish asked this question in Q&A
Discussion options

You must be logged in to vote

So you're mainly concerned with sharing the view code that displayes the history list and wires up event handlers, with the new location wanting to make it richer, yeah? The sealed class approach you put up as option 1 sounds pretty sane to me — make RenderingT a more public concern so that parent worklfows have the option of messing with it, can choose how to reflect the loading state, etc.

I suspect the duplication won't be all that big a deal. If you're using RecyclerView to show the combined lists, you'd likely want pretty different treatment than in the vanilla case anyway -- have to map indices, who knows what else.

Replies: 2 comments 2 replies

Comment options

You must be logged in to vote
1 reply
@zoltish
Comment options

Comment options

You must be logged in to vote
1 reply
@zoltish
Comment options

Answer selected by rjrjr
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants