Skip to content

Commit fc9c8b1

Browse files
authored
ClearCache method
1 parent 44bcbf2 commit fc9c8b1

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Components/Shared/src/RootTypeCache.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,9 @@ static RootTypeCache()
2626
{
2727
HotReloadManager.Default.OnDeltaApplied += ClearCache;
2828
}
29-
}
29+
};
30+
31+
private static void ClearCache() => _typeToKeyLookUp.Clear();
3032
#endif
3133

3234
public Type? GetRootType(string assembly, string type)

0 commit comments

Comments
 (0)