agile-ts / agile

🌌 Global State and Logic Library for JavaScript/Typescript applications

Home Page:https://agile-ts.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fix `0` as itemKey issue

bennoinbeta opened this issue Β· comments

commented

πŸ› Bug report

πŸ€– Current Behavior

If you have a Collection and have an Item with the itemKey 0..
it will have problems with this itemKey because we often do

if(!itemKey)
// ..

instead of

if(itemKey == null)
// ..

🎯 Expected behavior

Shouldn't be a problem having an itemKey called 0

πŸ’» Your environment

Software Version(s)
@agile-ts/core 0.0.15
commented

should be fixed now