Refine

R

Refine

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

Join

ask-any-question

discussions

fair-rose
fair-rose9/17/2024

Custom dataProvider create and update errors

Hi, I am getting this error in my customDataProvider, How can I solve it Type '<TData extends BaseRecord = BaseRecord, TVariables extends ILead = ILead>({ variables }: CreateParams<TVariables>) => Promise<CreateResponse<TData>>' is not assignable to type '<TData extends BaseRecord = BaseRecord, TVariables = {}>(params: CreateParams<TVariables>) => Promise<CreateResponse<TData>>'. Types of parameters '__0' and 'params' are incompatible. Type 'CreateParams<TVariables>' is not assignable to type 'CreateParams<ILead>'....
yappiest-sapphire
yappiest-sapphire9/16/2024

.env for react refine

.env for react refine
ambitious-aqua
ambitious-aqua9/13/2024

Better and quicker way to reproduce an issue on any frame work

Whenever I try to work on a problem with a specific stack, like if I want to work on base-antd, I use this command:
pnpm dev --scope @refinedev/antd --scope base-antd
pnpm dev --scope @refinedev/antd --scope base-antd
or any other framework. I go through pnpm-lock.yaml and work on that particular base example. I've also tried setting up a custom project using the CLI and npm link to link the local package. I wanted to know if there is a faster or better way to quickly reproduce an issue?...
wise-white
wise-white9/13/2024

useBack hook how to know the address

useBack hook how to know the address or resource its would go back to
funny-blue
funny-blue9/13/2024

disable select dropdown search from rerunning table query

@kapa.ai How can I keep the select dropdown search from rerunning the associated table query?
metropolitan-bronze
metropolitan-bronze9/12/2024

Toster translations

hi i'd love to create translations for notifications and all other default refine text but i cant find keys that i need to set in my i18n resources...
adverse-sapphire
adverse-sapphire9/12/2024

antd

I'm using the latest version of refine with antd and nextjs config. Instead of the Sider collapsible button, I'd like to add a custom Hamburger menu positioned at the top-left corner of the Header. The problem I have is there's no props called trigger to hide the default collapsible button. As you can see there're only 3 props Title, render, meta are exposed in LayoutProps.Sider. is there any way to get around this?...
passive-yellow
passive-yellow9/12/2024

Getting Data from a key in a REST response

I'm trying to populate a Refine MUI table with data from the Django Rest Framework API. The response from the API is in the following format: { "count": 41, "next": "http://localhost:8000/api/captures?_end=25&_start=25", "previous": null,...
wise-white
wise-white9/11/2024

how can i define my resources in a seperate files

how can i define my resources in a seperate files
funny-blue
funny-blue9/11/2024

translate antd toast messages with i18n

@kapa.ai how can i translate antd toast messages (for example, useDrawerForm, useModalForm) with i18n?
fair-rose
fair-rose9/10/2024

How to implement authentication and allow user to display leads

How can I authenticate a user by calling an endpoint with the user email and password as the payload. Then saving the token and using the same token to fetch leads from another endpoint which requires the user to be authenticated
wise-white
wise-white9/10/2024

useList pageSize defaults to 10

useList pageSize defaults to 10 how can the default pagigation value be changed across the hooks can it be set in the config
conscious-sapphire
conscious-sapphire9/10/2024

change filter operators in useTable

can i get an example to change default operator in useTable for specific field. e.g: firstName to "contains"
mute-gold
mute-gold9/10/2024

useForm on load data for edit

How to trigger another function when data loaded
rival-black
rival-black9/10/2024

how to request api nested dynamic route

how to request api nested dynamic route
rival-black
rival-black9/10/2024

how to use autocomplete hook for mantine

how to use autocomplete hook for mantine
rival-black
rival-black9/10/2024

how to disable resource query

how to disable resource query
rival-black
rival-black9/9/2024

can you create sidebar without resources

can you create sidebar without resources
rival-black
rival-black9/9/2024

how to disable query at pageload resource

how to disable query for a page
optimistic-gold
optimistic-gold9/9/2024

API

Do I have to write my own API to manage my own data internally?