add comment for rpc bug

world_overviews
joneugster 1 year ago
parent 84ad619537
commit 853f797157

@ -455,7 +455,11 @@ export function TypewriterInterface(props: { world: string, level: number, data:
let lastStepErrors = proof.length ? hasInteractiveErrors(proof[proof.length - 1].errors) : false
// TODO: does the position matter at all?
// BUG: Triggers this:
// > React has detected a change in the order of Hooks called by TypewriterInterface.
// > This will lead to bugs and errors if not fixed. For more information, read the
// > Rules of Hooks: https://reactjs.org/link/rules-of-hooks
// maybe because `uri` is initially undefined?
const rpcSess = useRpcSessionAtPos({uri: uri, line: 0, character: 0})
return <div className="typewriter-interface">

Loading…
Cancel
Save