Open apropp opened 1 year ago
Hello, yes this should be possible by simply initializing your rendering component's state with the previously saved data and passing that into the ScheduleSelector
component's schedule
prop. Here's an example: https://codesandbox.io/s/react-schedule-selector-initialization-example-74l03t
Hello! I currently save users' availabilities in Firebase and want to allow them to update them later. Is there a way i can load the existing schedule onto the rendered schedule selector, so that times/dates they selected previously will appear as dark blue and they can add/remove times as they wish? I have successfully read the data from firebase and saved it to this.state.schedule, but am struggling to get it to display on the selector. Thanks!