mirror of
https://github.com/bitburner-official/bitburner-src.git
synced 2025-03-07 11:04:36 +01:00
faction dont rerender
This commit is contained in:
30
dist/vendor.bundle.js
vendored
30
dist/vendor.bundle.js
vendored
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@ -72,10 +72,11 @@ export function FactionRoot(props: IProps): React.ReactElement {
|
|||||||
setRerender((old) => !old);
|
setRerender((old) => !old);
|
||||||
}
|
}
|
||||||
|
|
||||||
useEffect(() => {
|
// Enabling this breaks donations.
|
||||||
const id = setInterval(rerender, 200);
|
// useEffect(() => {
|
||||||
return () => clearInterval(id);
|
// const id = setInterval(rerender, 200);
|
||||||
}, []);
|
// return () => clearInterval(id);
|
||||||
|
// }, []);
|
||||||
|
|
||||||
const faction = props.faction;
|
const faction = props.faction;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user