@go-avro/avro-js 0.1.12 → 0.1.13
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/dist/client/QueryClient.js +3 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.js +1 -1
- package/package.json +1 -1
|
@@ -483,8 +483,10 @@ export class AvroQueryClient {
|
|
|
483
483
|
this.authStateListeners = this.authStateListeners.filter((c) => c !== cb);
|
|
484
484
|
}
|
|
485
485
|
setAuthState(state) {
|
|
486
|
-
|
|
486
|
+
// Store before notifying so listeners that read getAuthState()
|
|
487
|
+
// (e.g. useSyncExternalStore snapshots) see the new value.
|
|
487
488
|
this._authState = state;
|
|
489
|
+
this.authStateListeners.forEach((cb) => cb(state));
|
|
488
490
|
}
|
|
489
491
|
getAuthState() {
|
|
490
492
|
return this._authState;
|
package/dist/version.d.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export declare const AVRO_JS_VERSION = "0.1.
|
|
1
|
+
export declare const AVRO_JS_VERSION = "0.1.13";
|
package/dist/version.js
CHANGED