Skip to content
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

Fix dom not change while data change #19

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

miyagipipi
Copy link

As https://github.com/tnfe/vue3-infinite-list/issues description.
I fix setTimeout to directly run scrollRender().

There may be some doubts about whether the renderEnd function can be removed from the scrollRender function and run separately (involving many changes).

I see that other watch run scrollRender directly. So I haven't made too many modifications here either.

If there is indeed an impact (it operates on DOM), the renderEnd function can be removed from the scrollRender function.
And run renderEnd in watch or some other places.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant