I’m using the `rememberSelectableWeekCalendarState...
# compose
a
I’m using the
rememberSelectableWeekCalendarState
from
io.github.boguszpawlowski.composecalendar
like this:
Copy code
val weekCalendarState = rememberSelectableWeekCalendarState(
    initialSelection = listOf(selectedDate),
)
The app crashes when restoring the state with the following code:
Copy code
restore = { restoreMap ->  
    WeekState(  
        initialWeek = Week(firstDay = LocalDate.parse(restoreMap[CurrentWeekKey] as String)),  
        minWeek = Week(firstDay = LocalDate.parse(restoreMap[MinWeekKey] as String)),  
        maxWeek = Week(firstDay = LocalDate.parse(restoreMap[MaxWeekKey] as String)),  
    )  
}
I think the issue might be with how the data is restored or parsed. Has anyone experienced this or knows how to fix it?
l
what is the SelectionMode in this calendar ?. This about the MinWeekKey and MaxWeekKey..