mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-11-28 19:55:53 +03:00
Merge pull request #5654 from urbit/po/fix-loop-in-tile-grid
grid: fix loop caused by useEffect in tilegrid
This commit is contained in:
commit
f83403942e
@ -46,11 +46,7 @@ export const TileGrid = ({ menu }: TileGridProps) => {
|
||||
} else if (order.length > chargeKeys.length && chargeKeys.length !== 0) {
|
||||
useSettingsState
|
||||
.getState()
|
||||
.putEntry(
|
||||
'tiles',
|
||||
'order',
|
||||
uniq(order.filter((key) => !(key in charges)).concat(chargeKeys))
|
||||
);
|
||||
.putEntry('tiles', 'order', uniq(order.filter((key) => key in charges).concat(chargeKeys)));
|
||||
}
|
||||
}, [charges, order]);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user