refactor(examples): use slot render helpers

Use the slhx RenderSlotExt path for board updates so examples no longer manually compose SafeHtml before slot replacement.

req: dx/006

req: component/003
This commit is contained in:
slhx agent
2026-06-01 23:46:59 +02:00
parent 4e47b470a7
commit fd5d48d59a
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ fn registry(state: Arc<AppState>) -> HandlerRegistry {
fn board_effects(board: &BoardState, notice: &'static str) -> impl IntoEffect {
(
slots::board.html(ui::render(&board_view(board))),
slots::board.render(&board_view(board)),
slots::notice.text(notice),
forms::create_card.clear("title"),
)
+1 -1
View File
@@ -415,7 +415,7 @@ fn update_work(demo: &mut DemoState, id: Option<&str>, update: impl FnOnce(&mut
fn demo_effects(demo: &DemoState, notice: &'static str) -> impl IntoEffect {
(
slots::hero_metrics.render(&hero_view(demo)),
slots::board.html(ui::render(&board_view(demo))),
slots::board.render(&board_view(demo)),
slots::activity.render(&activity_view(demo)),
slots::inspector.render(&inspector_view(demo)),
slots::notice.text(notice),