You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there anyway to "set" the days that I want selected in one shot that is not via modifiers? I'm asking this because using modifiers is slow when managing year calendars.
I have an X amount of dates stored in my database that can have different types (holiday, non workable day, etc..). I want to populate a year calendar with them using different colors depending on their type. So far I've achieved this via modifiers like so in my render method:
Where this.props.calendar is a prop populated by the parent component with the days fetched from the database via a reducer (using redux).
This is very inefficient since I have to run 365 times for X number of days for each modifier each time the component renders. It would be very nice to have a method like setDays() that admitted an array of days and their class values so we could sed in one shot only once.
Can I do this now?
Thanks.
The text was updated successfully, but these errors were encountered:
Sadly now this is not possible. I'm aware of this design performance issues, in particular this case would be solved with #181 (comment). I'd like to know your feedback on that issue!
Is there anyway to "set" the days that I want selected in one shot that is not via modifiers? I'm asking this because using modifiers is slow when managing year calendars.
I have an X amount of dates stored in my database that can have different types (holiday, non workable day, etc..). I want to populate a year calendar with them using different colors depending on their type. So far I've achieved this via modifiers like so in my
render
method:Where
this.props.calendar
is a prop populated by the parent component with the days fetched from the database via a reducer (using redux).This is very inefficient since I have to run 365 times for X number of days for each modifier each time the component renders. It would be very nice to have a method like
setDays()
that admitted an array of days and their class values so we could sed in one shot only once.Can I do this now?
Thanks.
The text was updated successfully, but these errors were encountered: