Skip to content

In AgendaList provide a prop to always render empty items for all days rather than iterate over an array for empty days #960

Open
@shamilovtim

Description

@shamilovtim

Description

Currently, empty days must be provided with an empty array like this {'yyyy-mm-dd':[]}. After iterating through those empty days, the AgendaList renders the fragment returned from renderEmptyDate. For devs who want a design that has empty dates always rendered, this uses a ton of processing power because they must then create a function where they provide a year of empty dates. For these developers, it would be beneficial to provide a prop alwaysRenderEmptyDates: boolean. This prop will always render an empty item, rather than looping through an array in order to get the empty items, if a day is empty, it will render an empty day automatically. In theory this should save CPU cycles and increase speed.

Here is an example where I'm always rendering empty days:
Screen Shot 2019-10-14 at 3 01 30 PM

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions