Insert or update a registered option.
(mut options: Signal<Vec<OptionState>>, option_state: OptionState)
| 98 | |
| 99 | /// Insert or update a registered option. |
| 100 | pub(crate) fn sync_option(mut options: Signal<Vec<OptionState>>, option_state: OptionState) { |
| 101 | sync_option_state(&mut options.write(), option_state); |
| 102 | } |
| 103 | |
| 104 | fn sync_option_state(options: &mut Vec<OptionState>, option_state: OptionState) { |
| 105 | if let Some(position) = options |
no test coverage detected