Skip to content

Scroll#75

Merged
DogeDark merged 5 commits intoDioxusLabs:mainfrom
mcmah309:scroll
Apr 12, 2025
Merged

Scroll#75
DogeDark merged 5 commits intoDioxusLabs:mainfrom
mcmah309:scroll

Conversation

@mcmah309
Copy link
Contributor

Adds a hook to react to root scrolling

@DogeDark DogeDark self-requested a review March 31, 2025 20:35
@marc2332 marc2332 added the enhancement New feature or request label Apr 5, 2025
Comment on lines +69 to +73
let future_callback_name = callback_name.clone();
use_future(move || {
let future_callback_name = future_callback_name.clone();
async move {
let callback_name = future_callback_name;
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Just a suggestion to simplify this part:

Suggested change
let future_callback_name = callback_name.clone();
use_future(move || {
let future_callback_name = future_callback_name.clone();
async move {
let callback_name = future_callback_name;
use_future({
to_owned![callback_name];
move || {
to_owned![callback_name];
async move {

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done. PR seems to be stuck in "processing updates" for the past 10 min though.

Copy link
Contributor Author

@mcmah309 mcmah309 Apr 10, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

10 hours later and still processing.. weird, had to amend and force push the same commit, but it is showing now.

@mcmah309 mcmah309 requested a review from marc2332 April 9, 2025 21:44
@DogeDark
Copy link
Contributor

Clippy error isn't for this. I will test this later, but the code LGTM. Once Marc's review comes in, I plan to merge this before #73 and then rebase #73 on top of it.

Copy link
Collaborator

@marc2332 marc2332 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

:)

@DogeDark DogeDark merged commit a7b261e into DioxusLabs:main Apr 12, 2025
3 of 4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants