Closed marc2332 closed 2 weeks ago
current_weather()
shorthand also works. I like it better because it's less verbose. Could have been what the one who edited that bit was going for 🤞🏼It's documented here
Calling a signal will clone it's inner value, which might not be desirable in all the cases, hence I think it's better to use read()
for this kind of examples 😄
current_weather()
shorthand also works. I like it better because it's less verbose. Could have been what the one who edited that bit was going for 🤞🏼 It's documented here https://github.com/DioxusLabs/dioxus/blob/05b662ee2d2a9b17c4b094df5e4e81c9a05c37c8/packages/hooks/src/use_resource.rs#L269Calling a signal will clone it's inner value, which might not be desirable in all the cases, hence I think it's better to use
read()
for this kind of examples 😄
Hadn't considered that. Fair point, thanks!
current_weather()
shorthand also works. I like it better because it's less verbose. Could have been what the one who edited that bit was going for 🤞🏼It's documented here https://github.com/DioxusLabs/dioxus/blob/05b662ee2d2a9b17c4b094df5e4e81c9a05c37c8/packages/hooks/src/use_resource.rs#L269