Closed bcorey closed 4 months ago
this does not occur on my local copy of the repo before commit 2fbad1bfffa1007756b8ecfa3901ecdd0ec1890d
I am not able to reproduce this issue on either Web or Desktop. What platform are you targeting and what operating system do you use? Also, to confirm, are you testing it by resizing the window width and not the window height?
It's odd as 2fbad1b
was meant to fix a similar issue. Originally, use_window_size()
could only be used once.
I'm on macos targeting web and I'm seeing the issue in firefox, brave, and safari. resizing in either direction causes it.
this is odd: it's now working for me accessing the git repo directly but the cloned up to date copy fails to update any of the values on resize.
# up to date with origin/master after git fetch -ft git pull
# none of the values update
dioxus-sdk = { path = "../sdk/sdk", features = ["window_size"]}
# BUT using this instead now works
dioxus-sdk = { git = "https://github.com/DioxusLabs/sdk", features = ["window_size"]}
after running cargo clean
& dx serve
the local version of the repo works as well
closing since it seems like this was due to build artifacts from switching repo versions
if several components use the
use_window_size()
hook, they no panic or don't update when the window is resized.paste the below into the 'dx new' default project to test.