Breaking change in function behavior getItemById ( Dataview )
See original GitHub issueIssue Description
In the version 2.4.32
const Item = this.dataView.getItemById(id);
with id = ‘99’ or 99 it works.
In version 2.4.33 with id = ‘99’ getItemById does not work anymore
// work
function getItemById(id) {
return items[idxById[id]];
}
// does not work
function getItemById(id) {
return items[idxById.get(id)];
}
Issue Analytics
- State:
- Created 2 years ago
- Comments:5
Top Results From Across the Web
SlickGrid/example4-model.html at master - GitHub
<li>a filtered Model (DataView) as a data source instead of a simple array</li> ... and <b>real-time</b> grid updating in response to data changes.<br/>....
Read more >Tooltip Implementation - Documentation - Webix
Webix Documentation: Managing Data in a Component of Guides. This page contains Tooltip Implementation documentation to help in learning the library.
Read more >Breaking Changes & Dataview API Upgrades
Breaking Changes & Dataview API Upgrades. Multiple windows is now a core feature, allowing for improved dual monitor use of Obsidian.
Read more >Closures - JavaScript - MDN Web Docs
A closure is the combination of a function bundled together (enclosed) with references to its surrounding state (the lexical environment).
Read more >Should behavioural changes be considered breaking ...
Changing the functional behaviour of a function (like my example in the post) is a breaking change. Fixing a bug where a null...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
ok i will adapt my code 😃 thanks
BTW, since you’ve talked about Angular… you can take a look at my lib Angular-Slickgrid, it’s a wrapper on top of this SlickGrid fork which works out of the box for Angular with a lot of extra goodies.
Thanks for your issue feedback, I wasn’t aware of any impact, so it’s a “good to know” fact about this new strict equality. Have a nice day