protected override State GetStateCoreSync() { var state = base.GetStateCoreSync(); state.Todos = Todos.ToArray(); return(state); }