deep-jade
deep-jade16mo ago

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
14 Replies
vicious-gold
vicious-gold16mo ago
Hi @castle_junny, your API returns empty. I mean, for now there is no data. did i understand correctly ?
refine-support-bot
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 <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.
magic-amber
magic-amber16mo ago
Hi @alicanerdurmaz , Yes!
No description
vicious-gold
vicious-gold16mo ago
if your data is empty, inferencer cannot infer inputs and fields. because there is no value to infer this is expected behaviour
magic-amber
magic-amber16mo ago
I know...... Can't I define a type or something?
vicious-gold
vicious-gold16mo 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
magic-amber
magic-amber16mo 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.
magic-amber
magic-amber16mo ago
No description
magic-amber
magic-amber16mo 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
vicious-gold
vicious-gold16mo ago
unfortunately inferencer currently only works with only JSON values
magic-amber
magic-amber16mo 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.
vicious-gold
vicious-gold16mo 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
magic-amber
magic-amber16mo ago
Ok. i got it... Thanks for your help!
vicious-gold
vicious-gold16mo 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