We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a2453d commit 4d056c0Copy full SHA for 4d056c0
src/locationTracker/CrystalAmountsChooser.tsx
@@ -6,6 +6,10 @@ import { setRequiredCrystalCounts } from '../tracker/Slice';
6
import { range } from 'es-toolkit';
7
8
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.
13
const dispatch = useDispatch();
14
const counts = useSelector(requiredCrystalCountsSelector);
15
const updateCount = (val: string, idx: number) => {
0 commit comments