Skip to content

ResourceList shows nothing when empty #1120

@AKarmanov

Description

@AKarmanov

Issue summary

If I have an empty array fed to resource list I see nothing.

Expected behavior

I suspect it should show some kind of empty message and keep header displayed to allow filtering etc. after all I do specify resource name so something like "Couldn't find resourceName.plural" or something like that would be appropriate.

Actual behavior

As soon as items becomes [] (an empty array) everything disappears.

Steps to reproduce the problem

  1. Go here https://codesandbox.io/s/236qy68230?module=App.js
  2. Set items to []
  3. Observe everything disappear

Specifications

  • Are you using the React components? (Y/N):Y
  • Polaris version number: 3.9.0
  • Browser: Chrome
  • Device: Desktop
  • Operating System: Ubuntu

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions