-
Notifications
You must be signed in to change notification settings - Fork 18
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
trigger reflow manually #15
Comments
That could work. There needs to be at least 2 functions, 1 to save the element's attribute values before a data update, and 1 to trigger the reflow after a data update. Problem is the Smooth Component still needs to know when to call these functions, and only the child component knows when it's updated (thru the According to this SO answer, you can dynamically add a lifecycle listener. Based on that, something like this should work (untested).
I'll look into this, and if it works, I'll most likely export a |
sometimes i'm having nested components inside a "Smooth Component" and one of them is toggling a value in it's internal state and the component inside the
<slot />
never gets updated directly (which is actually fine). Is there a function (maybe a function returned from$smoothReflow()
) which i can invoke manually to check and trigger a reflow?thx
The text was updated successfully, but these errors were encountered: