wip: play with error code
This commit is contained in:
1 parent
09b2ff2736
commit
62d672fc90
5 files changed
+93
-1
No files matched your search
@@ -34,7 +34,7 @@ pub(crate) mod innerlude {
|
||||
/// An [`Element`] is a possibly-errored [`VNode`] created by calling `render` on [`Scope`] or [`ScopeState`].
|
||||
///
|
||||
/// An Errored [`Element`] will propagate the error to the nearest error boundary.
|
||||
pub type Element<'a> = anyhow::Result<VNode<'a>>;
|
||||
pub type Element<'a> = Result<VNode<'a>, anyhow::Error>;
|
||||
|
||||
/// A [`Component`] is a function that takes a [`Scope`] and returns an [`Element`].
|
||||
///
|
||||
|
||||
Reference in new issue
Block a user