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
I am updating the ranges prop with latest props object from store but in UI initial props object is displayed. So my hypothesis is that updating the ranges props does not sync with UI.
I have debugged this through the React Dev Tool and DateRangePicker component have latest props in the format mentioned in http://www.daterangepicker.com/#example4.
where old value of dateRanges={'Activity1': [moment(StartDate), moment(EndDate)]}
and new value of dateRanges={'Activity2': [moment(StartDate), moment(EndDate)]}
The text was updated successfully, but these errors were encountered:
The only props you should treat as "controlled props" are startDate and endDate. All others should be treated as "initial" values only. I will try to release a new version (v6) with a completely changed api to make this more clear (and some better examples)
I am updating the ranges prop with latest props object from store but in UI initial props object is displayed. So my hypothesis is that updating the ranges props does not sync with UI.
I have debugged this through the React Dev Tool and DateRangePicker component have latest props in the format mentioned in http://www.daterangepicker.com/#example4.
where old value of
dateRanges={'Activity1': [moment(StartDate), moment(EndDate)]}
and new value of
dateRanges={'Activity2': [moment(StartDate), moment(EndDate)]}
The text was updated successfully, but these errors were encountered: