Fixed count display for packages
Fixes issue #599
Hello @anistark Thank you for your pull request and for taking the time to work on this issue! I'm sorry that it took a long time to get back to you with a response. Your fix is much appreciated! :)
After the first look at #599 I thought that the issue is only with the paginator itself which cannot display the total count as your solution also suggests, however I would challenge this understanding:
There seems to be two problems with the state management of the packages. The List component doesn't react to the creation of a new package properly even if pagination is not required.
Here you can see that I have posted a new package. However, the 8th package gets displayed only after a browser refresh, however the 8th package should already be fetched according to the network tab:
Would you like to check out why this might happen? I don't know if that' the case, but it might have an impact on the implementation of your fix as well.
Since there's too many changes to the project in the due time, it's getting difficult to rebase properly. Will reopen in a fresh PR.