Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Schedule Screen Calendar Multidots not Reflecting Updates #2

Closed
nealetham opened this issue Jun 23, 2022 · 1 comment
Closed
Labels
bug Something isn't working

Comments

@nealetham
Copy link
Owner

The multidot functionality of the Calendar within the Schedule screen does not reflect any updates made from the addition, deletion of tasks from either the Home screen or the Schedule screen. The number of dots are not updated real-time.

The number of dots only updates upon tapping on any date on the Calendar.

Possible Solution:

There are two ways to retrieve data stored in Cloud Firestore. Either of these methods can be used with documents, collections of documents, or the results of queries:
Call a method to get the data.
Set a listener to receive data-change events.
When you set a listener, Cloud Firestore sends your listener an initial snapshot of the data, and then another snapshot each time the document changes.

Same solution as the bug encountered in #1 .Use the onSnapshot method from Firebase API, instead of getDoc.

@nealetham nealetham added the bug Something isn't working label Jun 23, 2022
@nealetham
Copy link
Owner Author

Solved by #7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant