The homepage of my app renders a sample of data points from a known set, each data point is rendered with the same template and the set itself is finite.
I want to decide which items are part of the subset during runtime by randomly selecting ids at page load and requesting the related item details by calling an api for each selected id.
If I set a dynamic page route to display the single data point details by id I can compute everything in advance with generateStaticParams.
If I want to render the subset I selected at runtime in the homepage I will need to render the list as client component, but each single data point is still knowable in advance.
Can I pre-render the set of components that display the data of my finite set of data points the same way that I would pre-render the pages that show the same data for each data point?
In other words, can I compute in advance a set of component templates (same component with different inputs) then decide at runtime which of them should be rendered in my page?