We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b0e3b6d commit 27c01cfCopy full SHA for 27c01cf
frontend/app/view/preview/preview.tsx
@@ -1069,12 +1069,13 @@ function PreviewView({
1069
model: PreviewModel;
1070
}) {
1071
const connStatus = useAtomValue(model.connStatus);
1072
+ const filePath = useAtomValue(model.metaFilePath);
1073
const [errorMsg, setErrorMsg] = useAtom(model.errorMsgAtom);
1074
const connection = useAtomValue(model.connectionImmediate);
1075
1076
useEffect(() => {
1077
setErrorMsg(null);
- }, [connection]);
1078
+ }, [connection, filePath]);
1079
1080
if (connStatus?.status != "connected") {
1081
return null;
0 commit comments