Diffable Data Source "Failed to find index of item..."

Should I reconfigure my code if I get the "Failed to find index of item...." console warning when I apply a new snapshot? Or more simply - does the presence of this error in my code indicate I have done something wrong, or is it just a warning?

It's hard to say, but it does sound like a bug in your code. Are you able to reproduce the behavior in a small demo project?

Should I reconfigure my code if I get the "Failed to find index of item...."

It seems so.

It is a warning, meaning your code does not crash when index is not found.

But did you expect the index to be found or is it an expected result ?

  • If you expect the index to be found, then you have a bug in code. No crash may just be temporary luck.
  • If not, you must just make sure you take appropriate action when index not found (in particular, avoid unwrapping some nil value).
Diffable Data Source "Failed to find index of item..."
 
 
Q