Better to create new page or use page parameters?

Say you had pages displaying similar content, is it better to keep them as separate pages or use page parameters and show/hide content? Which one wouldn’t slow the app down or does it even matter?


There’s no direct answer, both ways have their perks. A lot of pages showing similar content will slow the app down and be difficult to maintain, but showing and hiding content on one page can be complicated to keep track of to make sure the logic is proof.

A common use case of this (I don’t know if this applies to you) is a list of data, and then you can click an item in the list to show a detailed view of the item’s info. Here’s how you implement that, in case you could use this approach in your app.

1 Like