fix maximal recursion in useEffect
This commit is contained in:
@@ -124,7 +124,7 @@ function InventoryList({ items, tab=null, setTab=()=>{} } :
|
||||
setCurrentWorldItems(_modifiedItems.filter(x => x.world == worldId && x.level < levelId))
|
||||
// setRecentItems(_modifiedItems.filter(x => x.world == worldId && x.level == levelId - 1))
|
||||
|
||||
}, [items, inventory])
|
||||
}, []) // TODO: had `items, inventory`
|
||||
|
||||
return <>
|
||||
{ categories.length > 1 &&
|
||||
|
||||
Reference in New Issue
Block a user