File tree Expand file tree Collapse file tree 2 files changed +6
-10
lines changed
packages/compiler/src/lib/lcp Expand file tree Collapse file tree 2 files changed +6
-10
lines changed Original file line number Diff line number Diff line change
1
+ ---
2
+ " @lingo.dev/_compiler " : patch
3
+ " lingo.dev " : patch
4
+ ---
5
+
6
+ remove local variable cache
Original file line number Diff line number Diff line change @@ -27,20 +27,13 @@ export type LCPServerParamsForLocale = {
27
27
} ;
28
28
29
29
export class LCPServer {
30
- private static dictionariesCache : Record < string , DictionarySchema > | null =
31
- null ;
32
30
private static inFlightPromise : Promise <
33
31
Record < string , DictionarySchema >
34
32
> | null = null ;
35
33
36
34
static async loadDictionaries (
37
35
params : LCPServerParams ,
38
36
) : Promise < Record < string , DictionarySchema > > {
39
- // Return cached dictionaries if available
40
- if ( this . dictionariesCache ) {
41
- return this . dictionariesCache ;
42
- }
43
-
44
37
// If a load is already in progress, await it
45
38
if ( this . inFlightPromise ) {
46
39
return this . inFlightPromise ;
@@ -67,9 +60,6 @@ export class LCPServer {
67
60
] ) ,
68
61
) ;
69
62
70
- // Cache for subsequent requests within the same process
71
- this . dictionariesCache = result ;
72
-
73
63
return result ;
74
64
} finally {
75
65
// Clear inFlightPromise regardless of success/failure
You can’t perform that action at this time.
0 commit comments