public InjectStateNode(Node?parent, Context context, InjectStateBase <TState> element) : base(parent, context, element) { state = element.NewState(); element.AddListener(state, State_PropertyChanged); var childElement = element.Callback(state); child = childElement.CreateNode(this, context); }
protected override void UpdateElement(InjectStateBase <TState> oldElement, Context oldContext) => UpdateState();