@blockquote-web-components/blockquote-controller-xstate 2.3.16 → 2.3.17

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@blockquote-web-components/blockquote-controller-xstate",
3
- "version": "2.3.16",
3
+ "version": "2.3.17",
4
4
  "description": "This controller allows you to subscribe to an XState actor, updating a specified reactive property whenever the state machine transitions.",
5
5
  "keywords": [
6
6
  "lit",
@@ -117,12 +117,12 @@
117
117
  "xstate": "^5.20.1"
118
118
  },
119
119
  "devDependencies": {
120
- "@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.12.2",
121
- "@blockquote-web-components/blockquote-base-embedded-webview": "^1.13.3"
120
+ "@blockquote-web-components/blockquote-base-common-dev-dependencies": "^1.12.3",
121
+ "@blockquote-web-components/blockquote-base-embedded-webview": "^1.13.4"
122
122
  },
123
123
  "publishConfig": {
124
124
  "access": "public"
125
125
  },
126
126
  "customElements": "custom-elements.json",
127
- "gitHead": "ed2ae262264128b31b2e71b8780b6b1f3b8587bd"
127
+ "gitHead": "13c87a3d8022cc2b9b46fcf2c0b5c3a719025070"
128
128
  }
@@ -242,9 +242,7 @@ class UseMachine {
242
242
 
243
243
  startService() {
244
244
  this.actorRef = createActor(this.machine, this.options);
245
- if (this.actorRef) {
246
- this.subs = this.actorRef.subscribe(this.onNext);
247
- }
245
+ this.subs = this.actorRef?.subscribe(this.onNext);
248
246
  this.actorRef?.start();
249
247
  }
250
248