Hello I want to follow the rules here
Hello. I want to follow the rules here, but I'm not sure if I can post a question in general...
I'm using Inferencer, but if api don't have any resources, it's displayed as follows. I also want to define basic InferField lists for each API, so is there any way?
![No description](https://cdn.answeroverflow.com/1080424777933668392/image.png)
14 Replies
optimistic-gold•2y ago
Hi @castle_junny, your API returns empty. I mean, for now there is no data.
did i understand correctly ?
Hi, I am refine support bot :wave:. I am here to help you with your question. I searched for the answer to your question in the refine documentation and found an answer! 🏆
Answer: The code snippet
Answer: The code snippet
<FormSaveAndContinue path="form-save-and-continue" />
is used to enable the "Save and Continue" feature in forms.
SOURCES: ./docs/advanced-tutorials/forms/save-and-continue.md
Note: If this is the answer you need, then we are very lucky. If not, please wait for someone from the refine core team or the community to try to help you.
like-gold•2y ago
Hi @alicanerdurmaz , Yes!
![No description](https://cdn.answeroverflow.com/1080425910454452274/image.png)
optimistic-gold•2y ago
if your data is empty, inferencer cannot infer inputs and fields. because there is no value to infer
this is expected behaviour
like-gold•2y ago
I know...... Can't I define a type or something?
optimistic-gold•2y ago
Unfortunately not. inferencer only works with json
maybe you can create mock api, and fill with some mock data and you can send request to that api. after then you can get your inferenced code
like-gold•2y ago
I want to use it on the production service.
After deploying the site for the first time, there might be no resources... That seems to be a problem.
So I looked at the code a little bit, and there was a code from the create-inferencer side as below.
like-gold•2y ago
![No description](https://cdn.answeroverflow.com/1080427197166264370/image.png)
like-gold•2y ago
I was wondering if I could define InferField[] ( per resource ) in advance there or elsewhere.
Before that, I was wondering, is it impossible to use Infercer for production services
optimistic-gold•2y ago
unfortunately
inferencer
currently only works with only JSON valueslike-gold•2y ago
I am a back-end developer, so I may lack front-end knowledge. I'm sorry. I just wanted to implement the admin page easily.
optimistic-gold•2y ago
you can use it as you want. it's a open source code with MIT license 🙏
but while we were designing the inferencer, we designed it as a tool to speed up the development process. currently, we do not recommend using it in a production application
like-gold•2y ago
Ok. i got it...
Thanks for your help!
optimistic-gold•2y ago
I'm glad to hear that 👋
Don't be sorry. Please don't hesitate to ask question. You can use #ask-any-question section