Refine

R

Refine

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

Join

ask-any-question

discussions

passive-yellow
passive-yellow2/26/2024

Disable button next page

``` const { dataGridProps, search, filters } = useDataGrid<BaseRecord, HttpError, IPointsFilterVariables>({ pagination: { mode: 'server', },...
unwilling-turquoise
unwilling-turquoise2/25/2024

onMutationSuccess from useForm returns undefined for data

Trying to access the created object from a useForm, however the onMutationSuccess always returns undefined for the data object
exotic-emerald
exotic-emerald2/25/2024

GraphQL types not lowercase

We are using the
graphqlDataProvider
graphqlDataProvider
to help craft up some gql queries. But- Our resources are cased like 'Asset' and 'Product'- Those are the names of the resources passed from the
getList
getList
function. When the query gets submitted, the provider sets the entityType to 'asset' and 'product'....
fuzzy-lavender
fuzzy-lavender2/25/2024

Disable button after action

How to disable button after click
optimistic-gold
optimistic-gold2/25/2024

convert material ui to ant

My refine project is material UI i want to convert it to Antdesign
optimistic-gold
optimistic-gold2/25/2024

i want to convert useforem to antd

this is my code import { useState } from "react"; import { useGetIdentity } from "@refinedev/core"; import { useForm } from "@refinedev/react-hook-form"; ...
optimistic-gold
optimistic-gold2/25/2024

how do i convert from strapi to mern stack

import { getValueProps, mediaUploadMapper } from "@refinedev/strapi-v4"; export const CreateCompany: React.FC<CreateCompanyProps> = ({ modalProps, formProps,...
genetic-orange
genetic-orange2/25/2024

using material icon for a resource type

How do i pass a mui material icon as the icon when defining meta data for a resource type?
genetic-orange
genetic-orange2/25/2024

how can i add my own custom items to themedsiderv2

I would like to add my own item (not a simple action on a resource) that has its own icon, text, handler etc., to the side bar. I am using ThemedSiderV2.
passive-yellow
passive-yellow2/24/2024

Subform to create related record

Using Supabase as a data provider and following the exemple in the CRM app, I am trying to create a related record as it is done in this exemple CRM app, however the data variable return in https://github.com/refinedev/refine/blob/8066c0c1d8bba422e1b38ee325a6f4bca811e95d/examples/app-crm/src/routes/companies/create.tsx#L110 is empty, so I can’t set the companyId using createdCompany. Is there anything special to do when using a different data provider than the one used in the CRM exemple app to...
sensitive-blue
sensitive-blue2/24/2024

Disable notifications in useCreateMany and useCreate

Is it possible to turn off notification and setup custom notifications for useCreateMany and useCreate const { mutate: createMenuItem } = useCreate(); const { mutate: createManyAllergens } = useCreateMany(); const onSubmit = async (formData) => {...
ambitious-aqua
ambitious-aqua2/24/2024

Having an issue with supabase Setup

https://refine.dev/docs/data/packages/supabase/#adding-crud-pages using this guide but when i have it all finished, I had some routing errors with the utility and interface, so i fixed those but when i run the server I'm just getting a blank white page. I can upload to my github so i can share the repository if anyone is able to help or may have a right direction to point me in
vicious-gold
vicious-gold2/24/2024

how to access the record's attributes in edit with antd?

how to access the record's attributes in edit with antd?
vicious-gold
vicious-gold2/24/2024

Modifying register values in UseModalFormReturnType

Is it possible to modify values that will be registered in custom modal form with type UseModalFormReturnType. I have some separate logic that can't be returned directly from FormControl.
harsh-harlequin
harsh-harlequin2/24/2024

"'users' has no argument named 'filter'"

Hello, I am trying to setup this example https://example.crm.refine.dev/ Using an API through supabase with GraphQL But i keep getting stuck with an error when updating the settings.tsx file....
sensitive-blue
sensitive-blue2/24/2024

Create form onSubmit update two database tables

Hi i'm using supabase for my backend. I'm trying to update two tables at the same time. One is menuitems and the other is a many-to-many table called menuitemallergens with menu_item_id and allergen_id. How do I setup my form so I can first submit the menu items and then update the menuitemallergens table with the according allergens?
optimistic-gold
optimistic-gold2/24/2024

error on initializing i18nprovider

this is my code snippet function App() { const { t, i18n } = useTranslation(); ...
optimistic-gold
optimistic-gold2/24/2024

translate

I want to select the languages in the header and translate everything give me the code in header
optimistic-gold
optimistic-gold2/23/2024

How to use functions in auth0 authbinding refine

this is my authbinding code I want to use the functions in them in app.tsx file...
optimistic-gold
optimistic-gold2/23/2024

How to use functions in authbindings for auth0

How to use functions in authbindings for auth0