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
React warning with JSX eventContent "flushSync was called from inside a lifecycle method" #7334
Comments
the same for me 🤔 |
Happening to me as well on React. const renderEventContent = (eventInfo: EventContentArg) => {
return (
<div>{/* ... */}</div>
)
}
// ...
<FullCalendar
eventContent={renderEventContent}
/> Edit: Seems that "fix unnecessary calls to |
same for me |
Would you be able to post a runnable, stripped-down demonstration of the bug? Would really appreciate it because the time saved reproducing will be time spent fixing. The React example project uses https://stackblitz.com/github/fullcalendar/fullcalendar-examples/tree/main/react |
@acerix Also, as I said earlier, as soon as we remove |
Thanks for the info, I also see the warning after |
one more clue this warning is logged the same number of time as the lenght of events array, sometimes in its multiple, like if 101 events are supplied, it will log 101 times this warning, in my case when i drag to select range of dates, it logs this warning "length of events array" times . |
This is now fixed in v6.1.8 Updated repro: |
Reduced Test Case
Do you understand that if a reduced test case is not provided, we will intentionally delay triaging of your ticket?
Which connector are you using (React/Angular/etc)?
React
Bug Description
When I updated to the latest version
v6.1.7
, started facing this issue.There's no visual bug, but I keep getting this warning fired many times when the calendar view updates.
The text was updated successfully, but these errors were encountered: