diff --git a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs
index 58a5c28161a..b965b51f082 100644
--- a/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs
+++ b/src/BootstrapBlazor/Components/TreeView/TreeView.razor.cs
@@ -303,6 +303,14 @@ protected override void OnInitialized()
ToolbarEditLabelText ??= Localizer[nameof(ToolbarEditLabelText)];
}
+ ///
+ /// Clear the cache of the tree node state.
+ ///
+ public void ClearCache()
+ {
+ _treeNodeStateCache?.Reset();
+ }
+
///
///
///