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 Checklist not Reflecting Homescreen Updates #1

Closed
nealetham opened this issue Jun 23, 2022 · 0 comments · Fixed by #7
Closed

[Bug] Schedule Screen Checklist not Reflecting Homescreen Updates #1

nealetham opened this issue Jun 23, 2022 · 0 comments · Fixed by #7
Labels
bug Something isn't working

Comments

@nealetham
Copy link
Owner

The Checklist within the Schedule screen does not update in real-time. Addition, checking, or deletion of tasks in the Home screen page is not reflected within the FlatList in the Schedule screen.

The checklist is only updated after reloading the expo application.

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.

Use the onSnapshot method from Firebase API, instead of getDoc.

@nealetham nealetham added the bug Something isn't working label Jun 23, 2022
@nealetham nealetham changed the title [Bug] Schedule Screen Checklist Update [Bug] Schedule Screen Checklist not Reflecting Homescreen Updates Jun 23, 2022
nealetham added a commit that referenced this issue Jun 23, 2022
nealetham added a commit that referenced this issue Jun 23, 2022
nealetham added a commit that referenced this issue Jun 23, 2022
@nealetham nealetham linked a pull request Jun 24, 2022 that will close this issue
nealetham added a commit that referenced this issue Jun 27, 2022
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

Successfully merging a pull request may close this issue.

1 participant