@player-ui/async-node-plugin 0.8.1--canary.471.16612 → 0.8.1--canary.471.16682

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -4803,7 +4803,6 @@ var AsyncNodePlugin = function() {
4803
4803
  onTemplatePluginCreated: new SyncHook(),
4804
4804
  templatePlugin: new SyncHook()
4805
4805
  };
4806
- this.transitioning = true;
4807
4806
  this.initialView = initialView;
4808
4807
  this.resolverOptions = resolverOptions;
4809
4808
  this.hooks.onTemplatePluginCreated.tap("view", function(templatePlugin) {
@@ -4811,28 +4810,18 @@ var AsyncNodePlugin = function() {
4811
4810
  });
4812
4811
  }
4813
4812
  _create_class(ViewInstance, [
4814
- {
4815
- key: "setTransition",
4816
- value: function setTransition(isTransitioning) {
4817
- this.transitioning = isTransitioning;
4818
- }
4819
- },
4820
4813
  {
4821
4814
  key: "updateAsync",
4822
4815
  value: function updateAsync() {
4823
- var fromTransitioning = arguments.length > 0 && arguments[0] !== void 0 ? arguments[0] : false;
4824
4816
  var _this_resolver;
4825
4817
  var update = (_this_resolver = this.resolver) === null || _this_resolver === void 0 ? void 0 : _this_resolver.update();
4826
4818
  this.lastUpdate = update;
4827
- if (!this.transitioning || this.transitioning && fromTransitioning) {
4828
- this.hooks.onUpdate.call(update);
4829
- }
4819
+ this.hooks.onUpdate.call(update);
4830
4820
  }
4831
4821
  },
4832
4822
  {
4833
4823
  key: "update",
4834
4824
  value: function update(changes) {
4835
- var fromTransitioning = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : false;
4836
4825
  var _this_resolver;
4837
4826
  if (this.rootNode === void 0) {
4838
4827
  this.validationProvider = new CrossfieldProvider(this.initialView, this.resolverOptions.parseBinding, this.resolverOptions.logger);
@@ -4855,10 +4844,7 @@ var AsyncNodePlugin = function() {
4855
4844
  return this.lastUpdate;
4856
4845
  }
4857
4846
  this.lastUpdate = update;
4858
- if (!this.transitioning || this.transitioning && fromTransitioning) {
4859
- this.hooks.onUpdate.call(update);
4860
- }
4861
- this.transitioning = false;
4847
+ this.hooks.onUpdate.call(update);
4862
4848
  return update;
4863
4849
  }
4864
4850
  },
@@ -6662,14 +6648,6 @@ var AsyncNodePlugin = function() {
6662
6648
  });
6663
6649
  }
6664
6650
  _create_class(ViewController, [
6665
- {
6666
- key: "setViewsTransition",
6667
- value: function setViewsTransition(transition) {
6668
- var _this_previousView, _this_currentView;
6669
- (_this_previousView = this.previousView) === null || _this_previousView === void 0 ? void 0 : _this_previousView.setTransition(transition);
6670
- (_this_currentView = this.currentView) === null || _this_currentView === void 0 ? void 0 : _this_currentView.setTransition(transition);
6671
- }
6672
- },
6673
6651
  {
6674
6652
  key: "queueUpdate",
6675
6653
  value: function queueUpdate(bindings) {
@@ -6721,12 +6699,10 @@ var AsyncNodePlugin = function() {
6721
6699
  if (!source) {
6722
6700
  throw new Error("No view with id ".concat(viewId));
6723
6701
  }
6724
- this.previousView = this.currentView;
6725
6702
  var view = new ViewInstance(source, this.viewOptions);
6726
6703
  this.currentView = view;
6727
- this.setViewsTransition(true);
6728
6704
  this.hooks.view.call(view);
6729
- view.update(void 0, true);
6705
+ view.update();
6730
6706
  }
6731
6707
  }
6732
6708
  ]);