At start, sectionIndexTitlesworks as expected (I can see them). But when I tap on filterBarButtonItemsectionIndexTitles dissapears.
I've tested it on version 4.2.1.
Originally created by @zalogatomek on GitHub (Oct 26, 2017).
So, let me use your CoreStoreDemo app.
I've added this simple function:
```swift
override func sectionIndexTitles(for tableView: UITableView) -> [String]? {
return ColorsDemo.palettes.sectionIndexTitles()
}
```
to `ListObserverDemoViewController`.
At start, `sectionIndexTitles`works as expected (I can see them). But when I tap on `filterBarButtonItem` `sectionIndexTitles` dissapears.
I've tested it on version 4.2.1.
I think this is because indexes are cached during FRC's fetch, which on ListMonitor.refetch() happens before the SectionBy is applied. I'll need to think how to handle this because the SectionBy closure may need to run on a background thread.
@JohnEstropia commented on GitHub (Oct 27, 2017):
Thanks for the report!
I think this is because indexes are cached during FRC's fetch, which on ListMonitor.refetch() happens before the SectionBy is applied. I'll need to think how to handle this because the SectionBy closure may need to run on a background thread.
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Originally created by @zalogatomek on GitHub (Oct 26, 2017).
So, let me use your CoreStoreDemo app.
I've added this simple function:
to
ListObserverDemoViewController.At start,
sectionIndexTitlesworks as expected (I can see them). But when I tap onfilterBarButtonItemsectionIndexTitlesdissapears.I've tested it on version 4.2.1.
@JohnEstropia commented on GitHub (Oct 27, 2017):
Thanks for the report!
I think this is because indexes are cached during FRC's fetch, which on ListMonitor.refetch() happens before the SectionBy is applied. I'll need to think how to handle this because the SectionBy closure may need to run on a background thread.