We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d7bc06c commit 53073eeCopy full SHA for 53073ee
1 file changed
src/Infrastructure/LeanCode.ViewRenderer.Razor/CompiledViewsCache.cs
@@ -50,6 +50,8 @@ public ValueTask<CompiledView> GetOrCompileAsync(string viewName)
50
"View type for {ViewName} was added to cache while we were setting up compilation",
51
viewName
52
);
53
+ // Complete the TCS before removing - other threads may be waiting on it
54
+ tcs.SetResult(compiled);
55
buildCache.TryRemove(viewName, out _);
56
return new ValueTask<CompiledView>(compiled);
57
}
0 commit comments