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>'....
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
or any other framework. I go through
base-antd, I use this command:
pnpm dev --scope @refinedev/antd --scope base-antd
pnpm dev --scope @refinedev/antd --scope base-antd
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?...useBack hook how to know the address
useBack hook how to know the address or resource its would go back to
disable select dropdown search from rerunning table query
@kapa.ai How can I keep the select dropdown search from rerunning the associated table query?
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...
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?...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,...
translate antd toast messages with i18n
@kapa.ai how can i translate antd toast messages (for example, useDrawerForm, useModalForm) with i18n?
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
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
change filter operators in useTable
can i get an example to change default operator in useTable for specific field. e.g: firstName to "contains"