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

Function Loading

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

Source from the content-addressed store, hash-verified

105
106 it('should provide ResourceContext to the loading component', () => {
107 const Loading = () => {
108 const resource = useResourceContext();
109 return <div>Loading resource: {resource}</div>;
110 };
111
112 render(
113 <ResourceContextProvider value="posts">

Callers

nothing calls this directly

Calls 1

useResourceContextFunction · 0.90

Tested by

no test coverage detected