Skip to content

fix: add root cache existence check when returning data #7873

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

Merged
merged 1 commit into from
Aug 20, 2025

Conversation

HerbertsVaadin
Copy link
Collaborator

@HerbertsVaadin HerbertsVaadin commented Aug 20, 2025

Description

Original issue prevented grid items to be properly rendered once grid was reopened (in a dialog) and items re-set to new ones.
Bug started to appear with the introduction of 14.12.8, but the underlying issue has been there for a while it seems.
Targeting only 14.3 here, because latest branch already has same kind of check for this method.

Basically, there was a missing null / undefined check for cache.

Fixes # (issue)

#7623

Type of change

  • Bugfix
  • Feature

Checklist

  • I have read the contribution guide: https://vaadin.com/docs/latest/contributing/overview
  • I have added a description following the guideline.
  • The issue is created in the corresponding repository and I have referenced it.
  • I have added tests to ensure my change is effective and works as intended.
    • No tests needed in my opinion
  • New and existing tests are passing locally with my change.
  • I have performed self-review and corrected misspellings.
  • I have not completed some of the steps above and my pull request can be closed immediately.

Copy link
Contributor

@vursen vursen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have this check in the latest version, so the change makes sense.

@vursen vursen changed the title fix: grid invisible items bug fix: add root cache existence check when returning data Aug 20, 2025
Copy link
Member

@web-padawan web-padawan left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. Looks like this was fixed on main by using optional chaining in #5899.

@web-padawan web-padawan merged commit 725469d into 14.13 Aug 20, 2025
4 checks passed
@web-padawan web-padawan deleted the bugfix/7623-grid-invisible-items-bug branch August 20, 2025 09:13
@vaadin-bot
Copy link
Collaborator

This ticket/PR has been released with Vaadin 14.13.2.

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

Successfully merging this pull request may close these issues.

4 participants