Skip to content

Commit a721715

Browse files
committed
fixing 'Hydration completed but contains mismatches.' error in netlify console
1 parent 3b10a92 commit a721715

1 file changed

Lines changed: 6 additions & 3 deletions

File tree

src/components/Ontologies/OntologySunburst.vue

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,7 @@ export default {
174174
if (typeof window !== "undefined") {
175175
this.isBrowser = true;
176176
177-
// 1. Await module initialization
177+
// Await module initialization
178178
const { default: Highcharts } = await import("highcharts");
179179
const { default: Sunburst } = await import("highcharts/modules/sunburst");
180180
const { default: Exporting } = await import(
@@ -193,8 +193,11 @@ export default {
193193
Exporting.default(Highcharts);
194194
}
195195
196-
// 2. FIX: Flip flag strictly AFTER modules attach to Highcharts
197-
this.modulesReady = true;
196+
//Flip flag strictly AFTER modules attach to Highcharts
197+
this.$nextTick(() => {
198+
this.isBrowser = true;
199+
this.modulesReady = true;
200+
});
198201
}
199202
200203
if (this.tree) {

0 commit comments

Comments
 (0)