The streamsReady field has to be set to true after initialization because in a weird edge case it resulted in a bug so that the sort would not work at all because dataToRender$.next(data) (line 41) didn't cause the desired emitting of the data in the TableItemSizeDirective in the connectDataSource method.
The streamsReady field has to be set to true after initialization because in a weird edge case it resulted in a bug so that the sort would not work at all because
dataToRender$.next(data)
(line 41) didn't cause the desired emitting of the data in theTableItemSizeDirective
in the connectDataSource method.