The PostInfoScreen was not displaying new posts immediately after their creation. Users had to manually refresh the page by changing the view and returning to the post list for updates to appear.
Resolution
This issue was resolved by implementing a listener on the Firebase database for posts, which updates the local list whenever changes are made. This listener is scoped within the ViewModel, ensuring it is not used or invoked when the ViewModel is not active.
Bugfix
Issue Description
The
PostInfoScreen
was not displaying new posts immediately after their creation. Users had to manually refresh the page by changing the view and returning to the post list for updates to appear.Resolution
This issue was resolved by implementing a listener on the Firebase database for posts, which updates the local list whenever changes are made. This listener is scoped within the ViewModel, ensuring it is not used or invoked when the ViewModel is not active.