rajatgupta - Hi Team,Facing issue with pre-ren...
Hi Team,
Facing issue with pre-render liveboard react components.
I am trying to use
PreRenderedLiveboardEmbed
react component. Initially, I just give it a preRenderId
and render it when my application starts.
Later on, in a specific route - I use a LiveboardEmbed
and pass the preRenderId
to it. Both the iframes
are present in the application but with zero height. Is my implementation right? We can do a generic pre-render without specifying liveboardId
in advance right? Code in thread.

9 Replies
@jbc can you take a look at this?
@rajatgupta this looks correct.
i think the reason is because of css
can you add some css which targets the div wrapping embed , with height: 100%;
or alternatively pass framHeight as viewConfig
@rajatgupta i've created a working example with bunch of options here , might be helpful
https://codesandbox.io/p/sandbox/github/thoughtspot/developer-examples/tree/main/visual-embed/pre-rendering
I have tried changing the CSS. If I give the pre-render-id to the liveboard then it doesn't work. Height is still zero.
Otherwise, if I pass the frameParams without the pre-render-id then it shows up.
Also, fullHeight param is not working
@rajatgupta can you pass these to the PreRenderedLiveboardEmbed
Thanks, passing frameParams to
PreRenderedLiveboardEmbed
works but instead of liveboard - its opening up the full app embed. Also, when I directly go to the route where liveboard is embedded then it's not showing up.
@rajatgupta its cause you are not passing liveboard id
its empty
passing a liveboardid in liveboardEmbed should solve this
I am passing a liveboardId - in the code sample I have shared - I have intentionally left it.
@rajatgupta was the other liveboard issue solved ? i hope that was the core issue ?