@lingxia/bridge 0.17.0 → 0.18.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.
|
@@ -59,7 +59,7 @@ export function getDisplayLanguage() {
|
|
|
59
59
|
*
|
|
60
60
|
* Change-only, so that this composes with `useSyncExternalStore`: the listener
|
|
61
61
|
* runs when the language changes, never on subscribe. Read the current value
|
|
62
|
-
* with `getDisplayLanguage()`. Logic's `lx.
|
|
62
|
+
* with `getDisplayLanguage()`. Logic's `lx.host.displayLanguage.watch` differs
|
|
63
63
|
* deliberately — it has no render loop to feed, so it delivers immediately.
|
|
64
64
|
*/
|
|
65
65
|
export function subscribeDisplayLanguage(listener) {
|
package/dist/es5/runtime-env.js
CHANGED
|
@@ -109,7 +109,7 @@ export function getDisplayLanguage() {
|
|
|
109
109
|
*
|
|
110
110
|
* Change-only, so that this composes with `useSyncExternalStore`: the listener
|
|
111
111
|
* runs when the language changes, never on subscribe. Read the current value
|
|
112
|
-
* with `getDisplayLanguage()`. Logic's `lx.
|
|
112
|
+
* with `getDisplayLanguage()`. Logic's `lx.host.displayLanguage.watch` differs
|
|
113
113
|
* deliberately — it has no render loop to feed, so it delivers immediately.
|
|
114
114
|
*/
|
|
115
115
|
export function subscribeDisplayLanguage(listener) {
|
package/dist/runtime-env.d.ts
CHANGED
|
@@ -8,7 +8,7 @@ export declare function getDisplayLanguage(): string;
|
|
|
8
8
|
*
|
|
9
9
|
* Change-only, so that this composes with `useSyncExternalStore`: the listener
|
|
10
10
|
* runs when the language changes, never on subscribe. Read the current value
|
|
11
|
-
* with `getDisplayLanguage()`. Logic's `lx.
|
|
11
|
+
* with `getDisplayLanguage()`. Logic's `lx.host.displayLanguage.watch` differs
|
|
12
12
|
* deliberately — it has no render loop to feed, so it delivers immediately.
|
|
13
13
|
*/
|
|
14
14
|
export declare function subscribeDisplayLanguage(listener: (language: string) => void): () => void;
|