@devvit/ui-renderer 0.10.19-next-2024-04-09-2e159762d.0 → 0.10.19-next-2024-04-09-2e56822d4.0
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/client/app-ui-looper.js +3 -3
- package/package.json +7 -7
package/client/app-ui-looper.js
CHANGED
|
@@ -88,7 +88,7 @@ export class AppUILooper {
|
|
|
88
88
|
}
|
|
89
89
|
queueEvent(ev) {
|
|
90
90
|
const app = __classPrivateFieldGet(this, _AppUILooper_app, "f");
|
|
91
|
-
if (ev.
|
|
91
|
+
if (ev.async) {
|
|
92
92
|
// TODO: Add QoS for different types of events on alternate queues. For
|
|
93
93
|
// now, treat alternate queues as having infinite concurrency.
|
|
94
94
|
void __classPrivateFieldGet(this, _AppUILooper_instances, "m", _AppUILooper_processEvent).call(this, app, ev);
|
|
@@ -160,7 +160,7 @@ _AppUILooper_app = new WeakMap(), _AppUILooper_appState = new WeakMap(), _AppUIL
|
|
|
160
160
|
}, _AppUILooper_processEvent = async function _AppUILooper_processEvent(app, ev) {
|
|
161
161
|
let rsp;
|
|
162
162
|
const req = { event: ev, state: this.appState };
|
|
163
|
-
if (this._local?.ready) {
|
|
163
|
+
if (this._local?.ready && !ev.remoteOnly) {
|
|
164
164
|
try {
|
|
165
165
|
rsp = (await this._local.call('HandleUIEvent', req, this.meta));
|
|
166
166
|
}
|
|
@@ -181,7 +181,7 @@ _AppUILooper_app = new WeakMap(), _AppUILooper_appState = new WeakMap(), _AppUIL
|
|
|
181
181
|
}
|
|
182
182
|
if (rsp) {
|
|
183
183
|
// Can only change state on the main queue.
|
|
184
|
-
if (!ev.
|
|
184
|
+
if (!ev.async) {
|
|
185
185
|
__classPrivateFieldSet(this, _AppUILooper_appState, rsp.state ?? {}, "f");
|
|
186
186
|
}
|
|
187
187
|
const renderType = ev.realtimeEvent
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@devvit/ui-renderer",
|
|
3
|
-
"version": "0.10.19-next-2024-04-09-
|
|
3
|
+
"version": "0.10.19-next-2024-04-09-2e56822d4.0",
|
|
4
4
|
"license": "BSD-3-Clause",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -55,10 +55,10 @@
|
|
|
55
55
|
},
|
|
56
56
|
"types": "./index.d.ts",
|
|
57
57
|
"dependencies": {
|
|
58
|
-
"@devvit/protos": "0.10.19-next-2024-04-09-
|
|
59
|
-
"@devvit/runtime-lite": "0.10.19-next-2024-04-09-
|
|
60
|
-
"@devvit/runtimes": "0.10.19-next-2024-04-09-
|
|
61
|
-
"@devvit/shared-types": "0.10.19-next-2024-04-09-
|
|
58
|
+
"@devvit/protos": "0.10.19-next-2024-04-09-2e56822d4.0",
|
|
59
|
+
"@devvit/runtime-lite": "0.10.19-next-2024-04-09-2e56822d4.0",
|
|
60
|
+
"@devvit/runtimes": "0.10.19-next-2024-04-09-2e56822d4.0",
|
|
61
|
+
"@devvit/shared-types": "0.10.19-next-2024-04-09-2e56822d4.0",
|
|
62
62
|
"@dotlottie/player-component": "2.7.2",
|
|
63
63
|
"p-queue": "7.3.4",
|
|
64
64
|
"rxjs": "7.8.1"
|
|
@@ -85,7 +85,7 @@
|
|
|
85
85
|
"devDependencies": {
|
|
86
86
|
"@devvit/eslint-config": "0.10.18",
|
|
87
87
|
"@devvit/repo-tools": "0.10.18",
|
|
88
|
-
"@devvit/tsconfig": "0.10.19-next-2024-04-09-
|
|
88
|
+
"@devvit/tsconfig": "0.10.19-next-2024-04-09-2e56822d4.0",
|
|
89
89
|
"@lit-labs/ssr": "^2.2.3",
|
|
90
90
|
"@lit/localize": "0.11.4",
|
|
91
91
|
"@open-wc/testing-helpers": "2.3.0",
|
|
@@ -118,5 +118,5 @@
|
|
|
118
118
|
"directory": "dist"
|
|
119
119
|
},
|
|
120
120
|
"source": "./src/index.ts",
|
|
121
|
-
"gitHead": "
|
|
121
|
+
"gitHead": "c51d3db38e7d9f6f932e04a6145e4a8ae6e3b501"
|
|
122
122
|
}
|