{"record":{"id":"e8d036973c056ea1","repo":"DioxusLabs/dioxus","slug":"launching-a-liveview-app-should-never-return","errorCode":null,"errorMessage":"Launching a liveview app should never return","messagePattern":"Launching a liveview app should never return","errorType":"panic","errorClass":null,"httpStatus":null,"severity":"error","filePath":"packages/liveview/src/launch.rs","lineNumber":37,"sourceCode":"        .find_map(|cfg| cfg.downcast::<Config>().ok().map(|cfg| *cfg))\n        .unwrap_or_default();\n\n    builder.enable_all().build().unwrap().block_on(async move {\n        config\n            .with_virtual_dom(move || {\n                let mut virtual_dom = VirtualDom::new(root);\n\n                for context in &contexts {\n                    virtual_dom.insert_any_root_context(context());\n                }\n\n                virtual_dom\n            })\n            .launch()\n            .await;\n    });\n\n    panic!(\"Launching a liveview app should never return\")\n}\n","sourceCodeStart":19,"sourceCodeEnd":39,"githubUrl":"https://github.com/DioxusLabs/dioxus/blob/24f6a829df0dfa203961a98ea4cae21c2ff27e28/packages/liveview/src/launch.rs#L19-L39","documentation":"The liveview launch function's Tokio runtime block_on returned after the server future completed, which should be impossible for a persistent liveview server. The trailing panic enforces the invariant that a liveview app runs forever.","triggerScenarios":"Thrown at packages/liveview/src/launch.rs:37 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":["The liveview server loop returned, which should never happen. Check server logs for the cause; this indicates a bug or a fatal server error."],"exampleFix":null,"handlingStrategy":"validation","validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"24f6a829df0dfa203961a98ea4cae21c2ff27e28","analyzedAt":"2026-08-23T07:10:14.078Z","contentChangedAt":"2026-08-23T07:10:14.078Z","schemaVersion":2},"datasetVersion":"2026-09-14T00:17:10.932Z"}