redirects, middleware, Transport, set/capture error status (#4751)

* wip: redirect

* redirect example

* fix file upload not in a form

* wip

* deny missing cfgs

* wip: add router fallback but it's not working

* fix suspense bug after rebuilds that queued work

* more cleanup

* add test for error codes

* add helpful comment

* bring back middleware annotation

* fix cfg

* add server feature

* fix doctest

* just disable liveview test for now

* fix liveview

* dont send init

* cache more playwright!

* add more pkgs to cache
This commit is contained in:
Jonathan Kelley authored and GitHub committed 2025-10-10 21:43:57 -07:00
1 parent 8a81475ba8
commit 9243ef4128
35 files changed
+935 -800

No files matched your search

+3 -3
View File
@@ -1,6 +1,6 @@
use crate::{
any_props::{AnyProps, BoxedAnyProps},
innerlude::{throw_error, RenderError, ScopeOrder, ScopeState},
innerlude::{RenderError, ScopeOrder, ScopeState},
scope_context::{Scope, SuspenseLocation},
scopes::ScopeId,
virtual_dom::VirtualDom,
@@ -108,8 +108,8 @@ impl VirtualDom {
fn handle_element_return(&self, node: &mut Element, scope: &Scope) {
match node {
Err(RenderError::Error(e)) => {
tracing::error!("Error while rendering component `{}`:\n{e}", scope.name);
throw_error(e.clone());
tracing::error!("Error while rendering component `{}`: {e}", scope.name);
self.runtime.throw_error(scope.id, e.clone());
}
Err(RenderError::Suspended(e)) => {
let task = e.task();