You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Oct 1, 2021. It is now read-only.
<virtual-list> currently exposes the requestReset() method as a mean to trigger a rerendering of the DOM. This is useful for users that want to keep the same items array instance, perform an arbitrary number of updates to it, and decide when to trigger the rerendering.
Should we expose such method?
Other possible solutions:
always trigger the rerendering when items is set
require the user to provide a new items array instance to trigger the update
If we want to keep this method, what would be a better name for it?
The text was updated successfully, but these errors were encountered:
Another scenario where the user needs something like requestReset() is when the DOM size changes with animations, e.g. expand row to show more details with an animation http://jsbin.com/galuhe/1/edit?html,output - but maybe this can be addressed with ResizeObservers?
So ideally IMO we never ask the user to use requestReset() for rendering-related reasons (like animations), but always use it for data-related reasons.
<virtual-list>
currently exposes therequestReset()
method as a mean to trigger a rerendering of the DOM. This is useful for users that want to keep the sameitems
array instance, perform an arbitrary number of updates to it, and decide when to trigger the rerendering.Should we expose such method?
Other possible solutions:
items
is setitems
array instance to trigger the updateIf we want to keep this method, what would be a better name for it?
The text was updated successfully, but these errors were encountered: