fix: add loading state when no uri is given
This commit is contained in:
@@ -1,13 +1,12 @@
|
||||
"use client";
|
||||
|
||||
import ContentstackLivePreview from "@contentstack/live-preview-utils";
|
||||
import { useEffect } from "react";
|
||||
import { useEffect } from "react"
|
||||
import ContentstackLivePreview from "@contentstack/live-preview-utils"
|
||||
|
||||
export default function InitLivePreview() {
|
||||
useEffect(() => {
|
||||
if (!ContentstackLivePreview.livePreview) {
|
||||
console.log("INIT");
|
||||
ContentstackLivePreview.init();
|
||||
ContentstackLivePreview.init()
|
||||
}
|
||||
}, []);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user