jarvis
July 13, 2023, 6:09am
1
Hi Team, I need to add two BuilderComponents on one page. One for the page header and another one for the page footer. And allow me to show different contents. How can I achieve this?
client component:
fetch data SSR:
Store:
So, I want to build multiple components on the same page with different contents using SSR mode only with one store .
Hello @jarvis ,
For help on using multiple BuilderComponents on one page, please refer to the below forum post
Sometimes, it makes sense to have multiple versions of a given content type on the same page. For example, maybe you have a model for an ad block on your page, and you want multiple ad blocks in a row. However, if you make multiple calls to
const first = builder.get(myModel, { query: { id: 123 } });
const second = builder.get(myModel, { query: { id: 456 } });
const third = builder.get(myModel, { query: { id: 789 } });
or in the actual rendering element:
<BuilderComponent model={myModel} opti…
jarvis
July 14, 2023, 2:17am
3
@manish-sharma I saw this, but I think it’s a different problem.