querysub 0.511.0 → 0.512.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/package.json
CHANGED
package/spec.txt
CHANGED
|
@@ -1,8 +1,3 @@
|
|
|
1
|
-
todonext
|
|
2
|
-
Make sure the AI updates the machine schema in a smart way. So we can actually have both the old and the new servers config and manage them correctly. make sure if we make multiple updates, it still remembers what the old config is. And make sure deploy all works correctly.
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
1
|
Trigger values
|
|
7
2
|
1) validStateComputer.ingestValuesAndValidStates
|
|
8
3
|
1.5) authorityStorage.ingestValues
|
|
@@ -138,12 +138,9 @@ export class ServiceDetailPage extends qreact.Component {
|
|
|
138
138
|
try {
|
|
139
139
|
await action();
|
|
140
140
|
} catch (error) {
|
|
141
|
-
Querysub.
|
|
141
|
+
Querysub.commit(() => {
|
|
142
142
|
this.state.saveError = error instanceof Error ? error.message : String(error);
|
|
143
143
|
});
|
|
144
|
-
} finally {
|
|
145
|
-
// The write => read invalidation keys should also cover this, but explicitly re-request the config as well, so the UI always reflects what the server now has (only AFTER the action fully finishes, so we can't refetch a value from before our write committed)
|
|
146
|
-
MachineServiceController(SocketFunction.browserNodeId()).getServiceConfig.refresh(selectedServiceIdParam.value);
|
|
147
144
|
}
|
|
148
145
|
});
|
|
149
146
|
}
|
|
@@ -307,7 +307,8 @@ export function getSyncedController<T extends {
|
|
|
307
307
|
promise.then(
|
|
308
308
|
result => {
|
|
309
309
|
logFinished();
|
|
310
|
-
|
|
310
|
+
// commit, NOT commitLocal, as this runs from a promise callback (an async context), where commitLocal writes don't reliably commit / trigger re-renders (which made the write => read invalidation flaky)
|
|
311
|
+
Querysub.commit(() => {
|
|
311
312
|
obj.result = atomicObjectWriteNoFreeze({ result });
|
|
312
313
|
obj.promise = undefined;
|
|
313
314
|
invalidateReaders();
|
|
@@ -315,7 +316,7 @@ export function getSyncedController<T extends {
|
|
|
315
316
|
},
|
|
316
317
|
error => {
|
|
317
318
|
logFinished();
|
|
318
|
-
Querysub.
|
|
319
|
+
Querysub.commit(() => {
|
|
319
320
|
obj.result = atomicObjectWriteNoFreeze({ error });
|
|
320
321
|
obj.promise = undefined;
|
|
321
322
|
invalidateReaders();
|