AntdInferencer not working even adjusting the new API
return <AntdInferencer resource="blogs" action="list" />;
11 Replies
Hi @pkalib. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the information extracts provided, you can use the
<AntdInferencer>
component to generate a sample list view for your resources. However, the example provided in the extracts does not include the resource
and action
props. Here's the example from the extracts:
To use the <AntdInferencer>
component with the resource
and action
props, you can modify the example like this:
Please note that this modification is not directly from the provided extracts, but it's based on the information available in the extracts.
----------------------
Note: you can ask me a follow up question by @ mentioning me again
:speech_balloon:
----------------------<@329809837338656770> kapa.ai is still learning and improving, please let us how it did by reacting below
adverse-sapphire•2y ago
um using nextjs
deep-jade•2y ago
Hey @pkalib,
Did you define your resources in
<Refine>
component?adverse-sapphire•2y ago
yes
adverse-sapphire•2y ago
deep-jade•2y ago
Can you explain in details such as console errors?
adverse-sapphire•2y ago
there is no error actualy
it just dont render
deep-jade•2y ago
It's interesting can you create a codesandbox environment to investigate it?
Btw, refine.new is using the Inferencer to create projects and they work as expected.
rare-sapphire•2y ago
Hey @pkalib any chance to try out the other actions such as show?
Are you trying with a new project or migrating an existing one to v4?
adverse-sapphire•2y ago
Sure I will
the project was created via cli then I updated it since it prompted new changes