mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-10 09:43:54 +01:00
add comment
This commit is contained in:
parent
2804b6ae56
commit
2e9a42d74c
@ -52,6 +52,8 @@ export function TerminalInput({ terminal, router, player }: IProps): React.React
|
||||
const [possibilities, setPossibilities] = useState<string[]>([]);
|
||||
const classes = useStyles();
|
||||
|
||||
// Need to run after state updates, for example if we need to move cursor
|
||||
// *after* we modify input
|
||||
useEffect(() => {
|
||||
if (postUpdateValue?.postUpdate) {
|
||||
postUpdateValue.postUpdate();
|
||||
|
Loading…
Reference in New Issue
Block a user