@manyducks.co/dolla 0.78.0 → 0.78.2

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.
package/lib/index.js CHANGED
@@ -690,6 +690,8 @@ var Conditional = class {
690
690
  connectedContent = [];
691
691
  appContext;
692
692
  elementContext;
693
+ initialUpdateHappened = false;
694
+ previousValue;
693
695
  constructor(config) {
694
696
  this.$predicate = config.$predicate;
695
697
  this.thenContent = config.thenContent ? toMarkup(config.thenContent) : void 0;
@@ -714,7 +716,11 @@ var Conditional = class {
714
716
  parent2.insertBefore(this.endNode, this.node.nextSibling);
715
717
  }
716
718
  this.stopCallback = observe(this.$predicate, (value) => {
717
- this.update(value);
719
+ if (!this.initialUpdateHappened || value && !this.previousValue || !value && this.previousValue) {
720
+ this.update(value);
721
+ this.initialUpdateHappened = true;
722
+ this.previousValue = value;
723
+ }
718
724
  });
719
725
  }
720
726
  }