Building a meeting suggestion widget. Input the number of pages in a book, the pages to read before each meeting, and the starting date. From there I generate a list of dates and display them in a repeating group. I also have a date input in each repeating group cell in case you want to modify one of the dates by a day or two (i.e. the scheduler suggests a meeting on a Sunday, you want to move it to Monday).
When the user uses that date input to change one of the suggested meeting dates. I want to update the underlying custom state with the new date and remove the old date. - If I do this with one state, I get the undesired behavior where the date disappears and the new date gets added to the end of the list (i.e. if there are 3 meetings and I change the middle meeting date, then the new date is the 3rd meeting in the list, not the middle (2nd))
Are there any other ways to modify a list state by index value from a repeating group?