useEditableTable short glitch

I'm looking at useEditableTable from antd and the thing is there is a short glitch when pressing edit on a row after another for a second the form is populated with previous rows data. this can be seen even in the example https://refine.dev/docs/api-reference/antd/hooks/table/useEditableTable/#basic-usage. just pres on edit on first row then on the second row.
useEditableTable | refine
useEditeableTable allows you to implement the edit feature on the with ease and returns properties that can be used on Ant Desing's and components.
K
kapa.ai214d ago
Hi @generatedcode. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Hmm, I don't know enough to give you a confident answer yet. However, I can tell you that the useEditableTable hook from refine is designed to make it easy to implement the edit feature on the Ant Design's Table and Form components. It returns properties that can be used on these components, including formProps and tableProps objects. When a user clicks on the edit button, isEditing(lineId) will turn true for the relevant line. This will also cause TextInput to show up on the line that's being edited. When the editing is finished, a new value can be saved by clicking SaveButton. If you're experiencing a glitch, it might be worth checking your implementation against the documentation for useEditableTable() (https://refine.dev/docs/api-reference/antd/hooks/table/useEditableTable/). If the issue persists, it could be a bug and you might want to consider reporting it to the refine team. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
K
kapa.ai214d ago
<@942815784479113277> kapa.ai is still learning and improving, please let us know how it did by reacting below
O
Omer214d ago
Hey @generatedcode , We are glad to see you! You're right. Would you like to create a GitHub issue for this?
P
passive-yellow214d ago
@Omer Sure I can do that tomorrow. I was not sure if its andt or refine issue. (Thanks for the all the good work with refine btw) just a bit more context adding shouldUpdate on the <Form.Item shouldUpdate ...rest of the props> helps a bit: the glitch is only very first time per row. But I will document it all in a GH issue
O
Omer214d ago
Thank you so much for the context, it will definitely help while dealing with this issue 🍻 Excuse my curiosity, what kind of projects do you develop with refine? If it's private, you can send a DM 🙂
P
passive-yellow214d ago
It's not private. Internal tooling and admin. (anything that used to be with react-admin😂 ) . whenever the database is quite a bit 50 + models it;s worth automating. in terms of type of project custom ERP like I'm also testing refine for small showcases for my backend builder useGenerated.com (NestJS + Prisma Orm + GraphQL ) - building a CRUD GraphQL instant
O
Omer214d ago
Oops, that sounds cool. We're working on a new backend feature set for enterprises. I'd love to get your thoughts. Would that be something you or your company would be into?
P
passive-yellow214d ago
I would surely like to se it. Now as of the company i work for they are a startup not that much of an enterprise. Also worth noting is that useGenerated is just my own project and it doesn't belong to the company I work for
O
Omer214d ago
Yep, I know. Can you add me on LinkedIn? https://www.linkedin.com/in/%C3%B6mer-aplak-14b87099/
P
passive-yellow214d ago
just wrote. we were already connected
More Posts
Upgrade Ant Design from v4 to v5 not workingI am trying to upgrade Ant Design from v4 to v5 so that I can upgrade Refine. As per your docs, I amHandle Errors inside of Forms being posted to a custom APIHey everyone! We're using Refine to such a great extend and I'm very thankful for all the work that How can I just see the current fields value?So this seems like a really dumb question, but using refine, its really difficult to use the value oHow to hide edit button action on specific row at list resourcehiding edit action for specific data in list resourceUnable to modify login error messageIn this documentation https://refine.dev/docs/api-reference/core/components/auth-page/#login Under aredirect to edit after create successi want to redirect user to edit page with its id after create is successfuladding data from useCustom in useForm default values``` const { data } = useCustom({ method: "get", url: "/advertisers/initialize", useCustom filterhey, is it possible to set filter when using useCustom to get a specific range of dates when fetchinhandle axios console error coming from useCreate````import { HttpError } from "@refinedev/core"; import axios, { AxiosRequestConfig } from "axios"; How to use nested Route with antdInferenceHow to use nested Route with antdInferencehandling errors and accessing objects``` onError: async (error) => { console.log(error); if ( error.statusCustom title handler with Typescriptwrite a custom title handler with TypescriptIs Simple-rest made for auth ?is simple rest made just for basic api calls? cause i m trying to implement auth and its forcing me How to use react router lazy for routes?I want to use the react router lazy api to load the components on route as example here https://reacUseTable does not call Connection endpoint for countI did a quick tutorial where I had a single book page with Refine and Ant. I defined the resources iHow to navigate to a list page with a filter parameter?I want to navigate to a list page by setting some filter parameter in the URL. How can I achieve thaGet return value from Edit page```tsx <Edit saveButtonProps={saveButtonProps} > <Form {...formProps} layout="vertical" onFiniAntdInferencer not workingI'm trying to use AntdInferencer when create but it keep showing loading button ```tsx </Route> tutorial is very slow to loadHi, I'm newbie and trying to learn refine.(attracted by the rich features), but the first problem I How to set global error and success notification?I want to set the notification for error and success of API calls globally. Is there a way to implem