We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 794e568 commit bea31c8Copy full SHA for bea31c8
gui/src/components/BVHButton.tsx
@@ -1,5 +1,5 @@
1
import { useLocalization } from '@fluent/react';
2
-import { useLayoutEffect, useState } from 'react';
+import { useEffect, useState } from 'react';
3
import {
4
RecordBVHRequestT,
5
RecordBVHStatusT,
@@ -15,7 +15,7 @@ export function BVHButton(props: React.HTMLAttributes<HTMLButtonElement>) {
15
const { useRPCPacket, sendRPCPacket } = useWebsocketAPI();
16
const [recording, setRecording] = useState(false);
17
18
- useLayoutEffect(() => {
+ useEffect(() => {
19
sendRPCPacket(RpcMessage.RecordBVHStatusRequest, new RecordBVHRequestT());
20
}, []);
21
0 commit comments