You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: modules/ROOT/pages/prerender.adoc
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,12 @@
6
6
:page-pageid: prerender
7
7
:page-description: How to use pre-rendering to optimize performance and user experience in ThoughtSpot embedding
8
8
9
-
+== Load Flow Diagrams
10
-
+
11
-
+The following diagrams illustrate how ThoughtSpot embed components load in a typical application, both for normal and pre-rendered scenarios. Reviewing these will help set the context for the strategies described in this guide.
The following diagrams illustrate how ThoughtSpot embed components load in a typical application, both for normal and pre-rendered scenarios. Reviewing these will help set the context for the strategies described in this guide.
@@ -70,9 +70,9 @@ The value of `preRenderId` can be any string, but it must match the `preRenderId
70
70
Limitation: Any props you want to pass to the embed (such as configuration options) must be passed to the `PreRenderedLiveboardEmbed` component on the home page. If you later render a `LiveboardEmbed` with the same `preRenderId`, those new props will not be respected if the iframe is already loaded. This is a current limitation of the pre-rendering approach.
71
71
====
72
72
73
-
.React Example
74
-
[source,jsx]
73
+
[example]
75
74
----
75
+
// React example
76
76
import { LiveboardEmbed } from "@thoughtspot/visual-embed-sdk/react";
77
77
78
78
const PreRenderLiveboardWithLiveboardId = () => (
@@ -109,9 +109,9 @@ Again, the value of `preRenderId` can be any string, but it must match the `preR
109
109
Limitation: Any props you want to pass to the embed must be passed to the `PreRenderedLiveboardEmbed` component on the home page. If you later render a `LiveboardEmbed` with the same `preRenderId`, those new props will not be respected if the iframe is already loaded.
110
110
====
111
111
112
-
.React Example
113
-
[source,jsx]
112
+
[example]
114
113
----
114
+
// React example
115
115
import { LiveboardEmbed } from "@thoughtspot/visual-embed-sdk/react";
0 commit comments