wip: play with error code

This commit is contained in:
Jonathan Kelley committed 2022-11-22 23:30:44 -08:00
1 parent 09b2ff2736
commit 62d672fc90
5 files changed
+93 -1

No files matched your search

+1 -1
View File
@@ -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`].
///