-
Notifications
You must be signed in to change notification settings - Fork 16
Scroll #75
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Scroll #75
Conversation
sdk/src/utils/scroll.rs
Outdated
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; |
There was a problem hiding this comment.
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:
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 { |
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
:)
Adds a hook to react to root scrolling