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
updateWeekView(date, startDate) | Show the week that includes the date param. If startDate is provided, the first day of the week resets to it as long as useIsoWeekday is false.
but the method doesn't exist on the component's ref. A similar method called updateWeekData is accessible but it doesn't seem to update the component since it doesn't set anything on the state and only returns the new updated state object.
I see that method updateWeekView existed before but got removed here together with some refactoring and optimization. Is it possible to restore it? :) I need to implement a possibility to jump back to the current week in the calendar and that's exactly where that method would be useful.
The text was updated successfully, but these errors were encountered:
MargaretKrutikova
changed the title
updateWeekView doesn't exist on component's ref
updateWeekView function doesn't exist on component's ref
Jul 11, 2018
That should be updated or removed from the docs. That method was obsoleted by the startingDate prop. Update that prop to change the displayed week.
It's been a while, but IIRC the updateWeekView opened up a lot of corner cases because the other props would be stale (e.g. update week to another week, but startingDate is still the previous week).
As stated in the README:
but the method doesn't exist on the component's
ref
. A similar method calledupdateWeekData
is accessible but it doesn't seem to update the component since it doesn't set anything on thestate
and only returns the new updatedstate
object.I see that method
updateWeekView
existed before but got removed here together with some refactoring and optimization. Is it possible to restore it? :) I need to implement a possibility to jump back to the current week in the calendar and that's exactly where that method would be useful.The text was updated successfully, but these errors were encountered: