Virtual list render problems

Hello, is it possible to not render a component in a virtual list if it is null?

`list.setItems(service.getItems());
list.setRenderer(service.createRenderer());

public ComponentRenderer<Component, Model> modelRenderer() {
return new ComponentRenderer<>(
item → {
Model model = service.getData(item.getId());
if (model == null) {
return null;
} else {
MyComponent myComponent = new MyComponent(
model.getTitle(),
model.getValue
);
}
return myComponent;
}
);
}
`
With this approach I get an “empty” component, meaning that I see nothing printed for this component but there is a space that it indicates that it is “there”, because it leaves spaces between all other components. So is it possible to ignore it entirely?
image.png

Virtual list render problems

I think that’s a missing feature. I recommend creating a GitHub issue here: Sign in to GitHub · GitHub

Thank you!