When trying to use the EuiSuperDatePicker, I ran into a warning where it required onTimeChange to be set (which makes sense given that it's a required property).
<EuiSuperDatePicker
isAutoRefreshOnly={true}
isPaused={this.state.autorefreshIsPaused}
onRefreshChange={this.onRefreshChange}
refreshInterval={this.state.autorefreshInterval}
/>
This leads to a slightly unexpected error in the console until you supply the noop callback (onTimeChange={() => null}). I think that it would be useful to have a standalone component that behaves like the <EuiSuperDatePicker isAutoRefreshOnly={true} /> (aka without all of the date/time stuff).
From there, EuiSuperDatePicker could just embed that component while simplifying its usage for people that don't need date/time stuff.
When trying to use the
EuiSuperDatePicker, I ran into a warning where it requiredonTimeChangeto be set (which makes sense given that it's a required property).This leads to a slightly unexpected error in the console until you supply the noop callback (
onTimeChange={() => null}). I think that it would be useful to have a standalone component that behaves like the<EuiSuperDatePicker isAutoRefreshOnly={true} />(aka without all of the date/time stuff).From there,
EuiSuperDatePickercould just embed that component while simplifying its usage for people that don't need date/time stuff.