Skip to content

Commit 4d056c0

Browse files
committed
Comment
1 parent 9a2453d commit 4d056c0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/locationTracker/CrystalAmountsChooser.tsx

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ import { setRequiredCrystalCounts } from '../tracker/Slice';
66
import { range } from 'es-toolkit';
77

88
export function CrystalAmountsChooser() {
9+
// TODO: This setup is pretty bad because every number typed
10+
// commits the result directly to Redux and that causes the
11+
// tooltips worker to restart etc. Doesn't seem to be a huge
12+
// problem yet but maybe there's a more efficient design.
913
const dispatch = useDispatch();
1014
const counts = useSelector(requiredCrystalCountsSelector);
1115
const updateCount = (val: string, idx: number) => {

0 commit comments

Comments
 (0)