You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Problem: counter always returns to 0, if the button inside
tag (as well as text returns to initial state if it is from input tag)
In my test project use_state does not work correctly with html tag
Steps To Reproduce
I have that code:
html! {
{Search}
{ *counter }
}
onclick Event is connected to function component, which is the past-copy of the counter from Docs: https://yew.rs/docs/getting-started/build-a-sample-app
Environment:
Yew version: [e.g. v0.21, master]
Rust version: [e.g. 1.78.0, stable]
Target: [wasm32-unknown-emscripten]
Build tool: [trunk]
OS, if relevant: [e.g. Windows]
Browser: [Chrome]
The text was updated successfully, but these errors were encountered:
Problem: counter always returns to 0, if the button inside
tag (as well as text returns to initial state if it is from input tag)In my test project use_state does not work correctly with html tag
Steps To Reproduce
{Search} { *counter } } onclick Event is connected to function component, which is the past-copy of the counter from Docs: https://yew.rs/docs/getting-started/build-a-sample-appI have that code:
html! {
Environment:
master
]stable
]wasm32-unknown-emscripten
]trunk
]The text was updated successfully, but these errors were encountered: