Skip to content

Commit

Permalink
add comment for rpc bug
Browse files Browse the repository at this point in the history
  • Loading branch information
joneugster committed Oct 21, 2023
1 parent 84ad619 commit 853f797
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion client/src/components/infoview/main.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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">
Expand Down

0 comments on commit 853f797

Please sign in to comment.