Use modules inside list view

Context: we want to re-use components between different apps, modules are the way to go for that. These are repeatables though (e.g. different record types) and would be best suited in list views. The problem is that list views do not support modules. In addition, trying to add a module to a list view fails in an obscure and unfriendly way, with the error message "Cannot place a undefined inside a List View".

1 Like

Hey @erispoe

we want to re-use components between different apps, modules are the way to go for that. These are repeatables though (e.g. different record types) and would be best suited in list views. The problem is that list views do not support modules.

I've added you to our internal feature request to support modules in repeatable contexts, but this isn't currently on the road map. Our team will be sure to update this post if this changes at a future point though.

For now, would you be able to create the Listview itself within the module?

In addition, trying to add a module to a list view fails in an obscure and unfriendly way, with the error message "Cannot place a undefined inside a List View".

Placing a module in a Listview should not be possible. But you can get around this if the module is in a container which leads to that Cannot place a undefined inside a List View error—this is a known issue.

Hi @everett_smith, I'm not sure what you mean by:

The goal is that modules themselves are elements of a listview.

To clarify, if you only were trying to use a single Module in a Listview without any other components, then you might be able to create the Listview within the Module itself.

If you need to use multiple Modules or a Module with other components in a Listview, then this wouldn't work.