We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
As of writing, yew-autoprops uses panic!() macro to display errors to the user. This, however, is not intended and causes jarring error:
yew-autoprops
panic!()
#[autoprops_component] pub fn Example(i: u32) -> Html { html! {} } #[function_component] pub fn App() -> Html { html! { <Example i={ 0 } /> } }
Error:
custom attribute panicked message: Invalid argument: i : u32 (must be a reference)
compile_error!()
The text was updated successfully, but these errors were encountered:
8c3bc87
Successfully merging a pull request may close this issue.
As of writing,
yew-autoprops
usespanic!()
macro to display errors to the user. This, however, is not intended and causes jarring error:Error:
Possible Solutions
compile_error!()
instead ofpanic!()
ing, this should cause a proper simple error to be displayed to the user of the library.The text was updated successfully, but these errors were encountered: