mirror of
https://github.com/ilyakooo0/urbit.git
synced 2024-12-01 11:33:41 +03:00
grid: fix loop caused by useEffect in tilegrid
This commit is contained in:
parent
3d2472f8b4
commit
3c68499b86
@ -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