mirror of
https://github.com/yewstack/yew.git
synced 2025-12-08 21:26:25 +00:00
fix: dead links (#3013)
This commit is contained in:
parent
54871f8019
commit
77b0d40455
@ -49,7 +49,7 @@ impl VisitMut for BodyRewriter {
|
||||
m,
|
||||
"hooks cannot be called at this position.";
|
||||
help = "move hooks to the top-level of your function.";
|
||||
note = "see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks"
|
||||
note = "see: https://yew.rs/docs/next/concepts/function-components/hooks"
|
||||
);
|
||||
} else {
|
||||
*i = parse_quote_spanned! { i.span() => ::yew::functional::Hook::run(#i, #ctx_ident) };
|
||||
@ -75,7 +75,7 @@ impl VisitMut for BodyRewriter {
|
||||
ident,
|
||||
"hooks cannot be called at this position.";
|
||||
help = "move hooks to the top-level of your function.";
|
||||
note = "see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks"
|
||||
note = "see: https://yew.rs/docs/next/concepts/function-components/hooks"
|
||||
);
|
||||
} else {
|
||||
*i = parse_quote_spanned! { i.span() => ::yew::functional::Hook::run(#i, #ctx_ident) };
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:9:9
|
||||
|
|
||||
@ -11,7 +11,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:14:9
|
||||
|
|
||||
@ -21,7 +21,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:19:9
|
||||
|
|
||||
@ -31,7 +31,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:22:26
|
||||
|
|
||||
@ -41,7 +41,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:23:9
|
||||
|
|
||||
@ -51,7 +51,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:27:20
|
||||
|
|
||||
@ -61,7 +61,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/function_component_attr/hook_location-fail.rs:34:9
|
||||
|
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:9:9
|
||||
|
|
||||
@ -11,7 +11,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:14:9
|
||||
|
|
||||
@ -21,7 +21,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:19:9
|
||||
|
|
||||
@ -31,7 +31,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:22:26
|
||||
|
|
||||
@ -41,7 +41,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:23:9
|
||||
|
|
||||
@ -51,7 +51,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:27:20
|
||||
|
|
||||
@ -61,7 +61,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_location-fail.rs:34:9
|
||||
|
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_macro-fail.rs:20:9
|
||||
|
|
||||
@ -11,7 +11,7 @@ error: hooks cannot be called at this position.
|
||||
error: hooks cannot be called at this position.
|
||||
|
||||
= help: move hooks to the top-level of your function.
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/introduction#hooks
|
||||
= note: see: https://yew.rs/docs/next/concepts/function-components/hooks
|
||||
|
||||
--> tests/hook_attr/hook_macro-fail.rs:22:9
|
||||
|
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user