MCPcopy
hub / github.com/marmelab/react-admin / Empty

Function Empty

packages/ra-core/src/dataTable/DataTableBase.spec.tsx:132–135  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

130
131 it('should provide ResourceContext to the empty component', () => {
132 const Empty = () => {
133 const resource = useResourceContext();
134 return <div>Empty resource: {resource}</div>;
135 };
136
137 render(
138 <ResourceContextProvider value="posts">

Callers

nothing calls this directly

Calls 1

useResourceContextFunction · 0.90

Tested by

no test coverage detected