mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2024-11-26 17:43:48 +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 [possibilities, setPossibilities] = useState<string[]>([]);
|
||||||
const classes = useStyles();
|
const classes = useStyles();
|
||||||
|
|
||||||
|
// Need to run after state updates, for example if we need to move cursor
|
||||||
|
// *after* we modify input
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
if (postUpdateValue?.postUpdate) {
|
if (postUpdateValue?.postUpdate) {
|
||||||
postUpdateValue.postUpdate();
|
postUpdateValue.postUpdate();
|
||||||
|
Loading…
Reference in New Issue
Block a user