Open ChocolateLoverRaj opened 7 months ago
PR welcome to add it. Another possibility is to use a resource, which does allow mutation.
In my case I can't use a resource because resources will execute the async function right away, but I want it to execute when a button is clicked.
@leorsousa05 and I will have a look at it in pair programming. Let us know if there was any progress since your last comment, @ChocolateLoverRaj.
I didn't start making a PR at all. I'm working on other programming projects rn. You don't need to wait for me.
I didn't start making a PR at all. I'm working on other programming projects rn. You don't need to wait for me.
We will probably start on monday. Good projects by the way!
Is your feature request related to a problem? Please describe. I have a web page which connects to a USB or BLE device using an action:
I want a way of clearing the value of an action when a "Disconnect" button is clicked.
Describe the solution you'd like A
Action::clear_value
function or something similarDescribe alternatives you've considered Create a signal that is a number. If the number is greater than the action version, it means that the action's result should be ignored. When the "Disconnect" button is pressed, increase the number.
Additional context My project that uses Leptos: https://github.com/ChocolateLoverRaj/rust-esp32c3-examples/tree/sensor-connect-web/sensor-connect