faint-whiteF
Refine3y ago
4 replies
faint-white

How do I use useTable without a resource?

Hi there, I am able to use useTable to retrieve data from a mock api as long as my array of incoming objects is contained within a parent such as { assets: [{},{}...]} but the backend dev just wants to send me a plain array of objects that looks more like [{},{}...]. I tried removing the meta.resource (see attached screenshot). I also tried setting it to a blank string as well as undefined. What is the proper way to do this?
image.png
Was this page helpful?