-
Notifications
You must be signed in to change notification settings - Fork 2.2k
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
Issue Displaying the Calendar within vite react app #2522
Comments
I tried fixing the issue by adding a useEffect and parse the date strings using moment.
|
@nourbenamor2001 Questions like this are best served from our Slack group or StackOverflow. I see you figured out your date parsing issue (I always suggest that, when using string date values from your datasource, use UTC date/time format The React warning you received at the end is, as it says, a warning. It does not effect code execution in any way. It's a note from the React team that support will eventually be removed. We have an update for this in the works. Your standard event replacement object would render an empty div if it did not have certain status. Also, you're doing this when you likely just want to use an eventPropGetter to apply a specific backgroundColor to your event display. As far as overriding your Agenda Event, we'd really need to see some running code in a CodeSandbox. |
Check that this is really a bug
Reproduction link
n/a
Bug description
I have requested to display some event data (dummy data, not actual backend api calls) to my react big calendar monthly and agenda cells. But the monthly calendar and the agenda do not show as seen in the images. This might be due to a responsiveness issue, but I doubt it because the Day and Week cells display quite properly. I think it might be in my code, please help me if you have any idea :
Expected Behavior
I expected the Monthly and Agenda cells to display properly in the frontend, but only the week and day cells properly show. This might be due to me sending data for the agenda and monthly calendar to display.
this is the data :
Actual Behavior
I tried to console.log the events, and they render properly :
I get one warning :
react-big-calendar version
1.9.1
React version
18.2.0
Platform/Target and Browser Versions
Windows 10
Validations
Would you like to open a PR for this bug?
The text was updated successfully, but these errors were encountered: