Refine

R

Refine

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

Join

ask-any-question

discussions

initial-rose
initial-rose4/24/2024

Example with NX, Vite, React Router & Chakra UI

Hi! I'd like to start building our company's new CRM with Refine within an NX monorepo . I've tried to get this example running: https://github.com/refinedev/refine/tree/master/examples/auth-chakra-ui, but I get the error: ``` Uncaught Error: useLocation() may be used only in the context of a <Router> component. at invariant (@refinedev_react-router-v6.js?v=48eae912:806:11)...
rival-black
rival-black4/24/2024

How do I list items and open the modal from the edit page?

How do I list items and open the modal from the edit page?
foreign-sapphire
foreign-sapphire4/24/2024

how to create boilerplate with tailwindcss & reactquery

I wanna know how to integrate refine nextjs with tailwindcss and react query, but i dont see the options when i first generate the code
rival-black
rival-black4/23/2024

How to prevent table from refreshing when clicking on edit button with usego?

How to prevent table from refreshing when clicking on edit button with usego?
national-gold
national-gold4/23/2024

How can i transform "tableProps" when using "useEditableTable" hook with antd

I have the following hook definition: ``` const { tableProps,...
provincial-silver
provincial-silver4/23/2024

Data error

i have this mutation mutate( { resource: /${API_ROUTES.USERS.USERLIST}/${id}, values: {...
like-gold
like-gold4/23/2024

Antd form won't render DatePicker

I have a component that's an ant design form with various form fields. But whenever I add a <DatePicker> component as the control for a <Form.Item>, I get the error "date4.isValid is not a function". If I remove the DatePicker, the form renders again fine. If I move the DatePicker outside of the form and then give it the appropriate value from my call to useForm(), it renders perfectly fine and contains the correct date. What do I need to do to make the form work with a DatePicker? My code looks like this: const { saveButtonProps, formProps, formLoading, queryResult } = useForm();...
helpful-purple
helpful-purple4/23/2024

AuthProvider OnError Cannot Change Notification

When api send error to client, i want to generate notification by api response message. I use AuthProvider-OnError but it is not working. onError: async (error) => { console.error(error); var isAuthenticated = await isLoggedIn();...
helpful-purple
helpful-purple4/23/2024

Create new refine material ui app and show error always

I created new refine project with material ui (from refine.new) and run "npm i" command. After that, vs code shows errors everywhere but app is working. It is really annoying.
No description
rival-black
rival-black4/23/2024

Useselect

How to use useSelect when i use it only one dropdown comes
helpful-purple
helpful-purple4/23/2024

Material ui useForm for Edit Page does not initialize form values

I use material ui. At Edit Page, it cannot fill the form with api result. Code in files. required: "This field is required",...
rival-black
rival-black4/23/2024

Blank page after build

As the title says, after refine build and refine start (preview) I got blank pages. Accessing both defined and undefined routes I still got blank pages. Inspecting the page, I realized that the body contained nothing. Do you know what's happening? Those are libs I used:...
No description
like-gold
like-gold4/22/2024

Passing additional query params in useSelect

How can I pass additional query params when I call the refine antd useSelect?
genetic-orange
genetic-orange4/22/2024

Layout Font size

How to configure font size for the entire app
fascinating-indigo
fascinating-indigo4/22/2024

weird thing with showButton

I just got a weird behavior with a showButton on one page I have showButton working well with the record.id shown as link, on another page, code is the same, I have no link. I am connected to a strapi and with ant-design...
genetic-orange
genetic-orange4/22/2024

onCancel

How to warm me onCancel: onCancel={() => { if (onCancel) { onCancel(); return;...
absent-sapphire
absent-sapphire4/22/2024

Different set of resource based on path

Hi, is it possible to have a different set of resource based on the first segment of the path? e.g. for /path1/... I want the resources to be [...
solid-orange
solid-orange4/22/2024

How to define GraphQL Schema?

Hey I am running a backend django + strawberry and refine with graphql to make some calls and read data. I keep getting TypeError: Cannot read properties of undefined (reading 'count') ...
provincial-silver
provincial-silver4/21/2024

Data picker MUI

I try to user the <DatePicker /> component from Material Ui, but this not show anything