Skip to main content

RebuildCacheBar

Function RebuildCacheBar 

Source
fn RebuildCacheBar() -> Element
Expand description

重建内容缓存工具条子组件。

封装「重建内容 / 重建全部」两个按钮及其 do_rebuild 异步闭包。状态 (rebuilding / rebuild_result) 由本组件内部持有(从 PostsPage 下沉至此, 因合并后仅 All tab 需要,无需跨层传递)。

AllPostsList 抽取以降低 god component 复杂度(见 dioxus-render-purity skill)。