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

fix: stop event flash when using fetchEvents method #27

Merged
merged 1 commit into from
Jul 5, 2022

Conversation

ashleyhood
Copy link
Contributor

Since it is recommended to only use one of the methods fetchEvents or getViewData, we only need to remove all events when using getViewData as the Fullcalendar method calendar.refetchEvents will fetch the events and rerender them in the background without causing the events to flash.

Fullcalendar refetchEvents docs

Since it is recommended to only use one of the methods `fetchEvents` or `getViewData`, we only need to remove all events when using `getViewData` as the Fullcalendar method `calendar.refetchEvents` will fetch the events and rerender them in the background without causing the events to flash.
@saade saade changed the title refactor: stops event flash when using fetchEvents method fix: stop event flash when using fetchEvents method Jul 5, 2022
@saade saade added the bug Something isn't working label Jul 5, 2022
@saade saade merged commit 78b75b4 into saade:main Jul 5, 2022
@saade
Copy link
Owner

saade commented Jul 5, 2022

thanks

@saade
Copy link
Owner

saade commented Jul 5, 2022

@ashleyhood ashleyhood deleted the ashleyhood-patch-1 branch July 14, 2022 12:49
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 this pull request may close these issues.

2 participants