refactor: allow grid header and footer renderers to run multiple times#9757
refactor: allow grid header and footer renderers to run multiple times#9757vursen wants to merge 3 commits into
Conversation
vaadin-review-bot
left a comment
There was a problem hiding this comment.
Reviewed the changes — left 1 comment.
| Finding | |
|---|---|
| 👀 | The new "renderers run multiple times" behavior and the vaadin-grid-sorter caching have no test. |
|
@claude Investigate why single time renderers were added in the first place. |
|
Claude finished @vursen's task in 2m 34s —— View job Why
|
The grid web component is moving to rendering its header and footer declaratively with Lit (vaadin/web-components#12134). With that change, header and footer cells can be re-created, which re-runs the column renderers. Rendering only once would leave re-created cells empty. The sorter element is cached between runs because re-creating it would reset the sort direction and notify the server. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
db7cac1 to
69a4349
Compare
69a4349 to
788cc03
Compare
Covers moving component content into a column group after the grid has rendered, which re-runs the header and footer renderers on re-created cells. Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
|



The grid web component is moving to rendering its header and footer declaratively with Lit (vaadin/web-components#12134). With that change, header and footer cells can be re-created, which re-runs the column renderers. The connector wrapped these renderers in
singleTimeRenderer, so a re-created cell would stay empty.The sorter element is now cached between renderer runs: re-creating it on every run would reset the sort direction and send a needless
sorters-changedevent to the server.Part of vaadin/web-components#10789