Refine

R

Refine

Join the community to ask questions about Refine and get answers from other members.

Join

ask-any-question

discussions

rival-black
rival-black8/29/2024

useMany and REST API

Hello, I would like to add the logic to my backend to make the useMany hook work. Here is my Controller:...
foreign-sapphire
foreign-sapphire8/29/2024

Custom delete mutation

Is there a way to specify what mutation is executed when clicking on the DeleteButton. I want to have custom delete logic on the backend.
national-gold
national-gold8/29/2024

model form autoResetForm

model form autoResetForm does not seem to reset all feilds
extended-salmon
extended-salmon8/29/2024

Pass custom value to Form.Item from a component

Hello, I have a ImageSelectorModal component which shows images in the modal fetched from API, it's selectable and fires onSelect event on clicking OK in the modal. I want to set the parameters passed to onSelect event to the edit form how can i do that...
foreign-sapphire
foreign-sapphire8/28/2024

AntD useForm id warning

I get this warning in browser console when using useForm ``` [useForm]: action: "clone", resource: "businesses", id: 522fa099-922d-4e01-be19-623dd1b922ab ...
foreign-sapphire
foreign-sapphire8/28/2024

Form not filled up with values on Clone page in Create component in AntD

When I go to my clone page the form fields are not automatically filled with values. I spread formProps from useForm hook on the Form element but it does not work.
foreign-sapphire
foreign-sapphire8/28/2024

canDelete on my Edit component does not add DeleteButton

canDelete on my Edit component does not add DeleteButton. I'm using AntD
extended-salmon
extended-salmon8/28/2024

Axios interceptor, authProvider onError still throws error

i implemented axios as authProvider, but i also added interceptor to refresh access token, i do refresh the token set the new token in the error.config but new problem is onError throws an error now on the screen saying that TypeError: Cannot destructure property 'data' of '(intermediate value)' as it is undefined. at Object.deleteOne (provider.ts:150:13)...
useful-bronze
useful-bronze8/28/2024

Adding translations for defaultColumnTypes'. filterOperators

I want to be able to add translations in the dictionary and make refine automatically use these for their default filterOperators' labels without needing to build my own filters from scratch. If this is not possible, then using the defaultOperators would make it that I would have to define my own anyway so that I can override the label with a translation. Unable to find a default way to do this. It makes a lot of sense to pull these by default from your translation provider and fallback to the l...
exotic-emerald
exotic-emerald8/28/2024

Recommendation for a project

Hello guys !I need help on a project I am currently undertaking. I aim to develop a simple website that allows users to book appointments using a date picker. The booking results should be sent via email to both the user and the website administrator. I would appreciate your recommendations on any additional requirements or technologies that would be beneficial for this project....
multiple-amethyst
multiple-amethyst8/27/2024

antd edit form uploads default values

@kapa.ai How can I render default values for uploads (thumbUrl, name, etc) using antd useDrawerForm and antd Upload component?
automatic-azure
automatic-azure8/27/2024

SelectProps Does not Exist

export const FirmList = React.FC = () => {
const { selectProps } = useSelect<CompanySize>({
resource: "CompanySize/GetCompanySizes",
optionLabel: "size",
optionValue: "id", ...
automatic-azure
automatic-azure8/27/2024

UseSelect and Select No Data Although It Has Data

const { options } = useSelect<CompanySize>({ resource: "CompanySize/GetCompanySizes", optionLabel: "size", optionValue: "id", });...
genetic-orange
genetic-orange8/27/2024

How do I upload files with antd and supabase?

import { getValueFromEvent, useModalForm, useSelect } from "@refinedev/antd"; import { useApiUrl, useGo } from "@refinedev/core"; import { Form, Modal,...
adverse-sapphire
adverse-sapphire8/27/2024

Live provider issue

I followed the information on this doc https://refine.dev/docs/advanced-tutorials/real-time, to set up an Ably live provider and it doesn't work. I have my data provider and auth provider working fine, but as soon as I add the live provider my app component stops rendering, it just shows a blank page with a <noscript>You need to enable JavaScript to run this app.</noscript> I attached two images showing both related files. Like I said, that code you see on the app renders a blank page, but if I were to comment the live provider line it would work just fine....
No description
xenogeneic-maroon
xenogeneic-maroon8/27/2024

Collapsible Text Mantine

How to implement collapsible text in mantine
extended-salmon
extended-salmon8/26/2024

List, consist of cards

Hello, instead of table and columns i want to use cards, i will show file list. How can i achieve this with Ant Design?
absent-sapphire
absent-sapphire8/26/2024

Want to Sign Up For Enterprise Plan

Hi, Multiple members of our team have tried to sign up for the Enterprise plan but have not heard back. What is the best way to get in touch with someone about the enterprise plan?...
adverse-sapphire
adverse-sapphire8/26/2024

Internal server error: Missing "./package.json" specifier in "@refinedev/core" package

I got this problem when I update refinedev/core package to 4.54.0 "Internal server error: Missing "./package.json" specifier in "@refinedev/core" package". How can i fix it?
extended-salmon
extended-salmon8/24/2024

Infinite websocket call on custom liveProvider implementation with socket.io

```ts import { LiveProvider } from "@refinedev/core"; import { Socket } from "socket.io-client"; type ListenerType = {...