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

Fetch data/update state correctly. #64

Open
hakan-kemal opened this issue Dec 9, 2019 · 0 comments
Open

Fetch data/update state correctly. #64

hakan-kemal opened this issue Dec 9, 2019 · 0 comments

Comments

@hakan-kemal
Copy link
Contributor

In the calendar component on refresh the calendar data is not being fetched from the database and therefore; "calendar.map is not a function" is displayed as an error.

Returning to the main page and accessing the calendar from there works.

This issue could be due to the data being fetched in the parent component and therefore the state not being updated accordingly.

A solution could be to fetch the data in the correct component!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant