swent-group10 / polyfit

0 stars 1 forks source link

Post list overview not updating correctly #327

Closed RandomUsername1315 closed 3 months ago

RandomUsername1315 commented 3 months ago

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.

sonarcloud[bot] commented 3 months ago

Quality Gate Passed Quality Gate passed

Issues
0 New issues
0 Accepted issues

Measures
0 Security Hotspots
65.8% Coverage on New Code
0.0% Duplication on New Code

See analysis details on SonarCloud