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-rose6/3/2024

Documentation does not match to project structure generated through browser

I have started with a project generated in the browser and wanted to start adding a custom data provider, but throughout different steps I have noticed that the project structure does not match to the documentation. For example, after downloading the project, I followed the recommendation of checking out the tutorial on the data provider from here: https://refine.dev/tutorial/essentials/data-fetching/fetching-data/ but the project structure in that project is different from the generated one, so it is not clear where I should make changes. As a newbie to Refine I think it would be easier, to have a tutorial, that starts where a new user starts i.e. the generated project. Right now, I did not understand whether I should implement the data provider in a new file in src/providers/data-provider.ts which is the file I should create according to the tutorial, or if I should adapt the code already present in the generated project in src/providers/data-provider/index.ts...
plain-purple
plain-purple6/3/2024

Can the Access Control access refine hooks

Can the Access Control access refine hooks. Or specifically a data provider i am using that uses refine hooks to gather certain configuration data.
deep-jade
deep-jade6/2/2024

Use modalForm Validation with custom submit

I want my custom submit to still check the built in vlaidation provided with the modalForm settings ` const { getInputProps, saveButtonProps,...
ambitious-aqua
ambitious-aqua6/2/2024

Nested update in Hasura

I want to implement below mutation ```mutation UpdateHelpCategoryWithMetadata($id: uuid!, $help_category: help_categories_set_input!, $metadata: [help_categories_metadata_insert_input!]!) { update_help_categories_by_pk(pk_columns: {id: $id}, _set: $help_category) { id...
wise-white
wise-white6/1/2024

dayjs

How to use dayjs to, for example display the date product vality
other-emerald
other-emerald6/1/2024

Using JoyUI

Hey y'all! Is it possible to use the JoyUI within MUI instead of the Material design ?
sunny-green
sunny-green5/31/2024

refine-update-notifier-nodejs folder

Hi everyone! I'm Lucas, a backend developer who is dealing with a backoffice card in the job. I'm very beginner with Refine but experinced with react and next. I'm facing an issue when I try to deploy the development I did, when I see the logs from the pods (kubernetes) when the app its starting (with refine start --port 8080) it seems like the start process try to create a folder with the path pathToApp/.config/refine-update-notifier-nodejs, it fails because the permissions of the FS which are setted to readonly. Can anyone tell me what this folder is for? there is a way to disable that folder creation? thanks in advance for any answer you can gave me...
deep-jade
deep-jade5/31/2024

Error with using a custom db select

import React from 'react'; import { Edit, useForm, useSelect } from "@refinedev/mantine"; import { Select, TextInput } from "@mantine/core"; import { IApp, ICategory } from '../../../interfaces'; ...
rival-black
rival-black5/31/2024

AxiosError

I have this problem and I don't know why. This says "Axios Error code 400" when I try to sign in.
deep-jade
deep-jade5/31/2024

Custom Edit Page not finding id

Trying to use this format to recognise the resource and id to edit <Edit resource='apps' recordItemId={id} Not working. URL with id ...
deep-jade
deep-jade5/31/2024

Server Validation only pickups the message but not each error

I'm using the simple rest data provider and I want to do server validation on create/update, but the errors are not shown in the form, just a generic "There was an error creating device (status code: 400)" the message sent from the server is there in the notification but the fields are not marked as error. this is the response I'm sending when validation fails on the server. ```{ "message": "algo fallo", "statusCode": 400,...
quickest-silver
quickest-silver5/30/2024

RTL with themedLayoutV2 Sidebar

For some reason I can’t render the sidebar to write UI tests ``` const RemixStub = createRemixStub([ {...
fascinating-indigo
fascinating-indigo5/30/2024

Refine projects

Hi, i just discover Refine, and i really want to use it to make my dashboard, but i already a "vanilla" dashboard with only a different route in my client(front) vite app. If i start a Refine dashboard, how can i plug it to my client in order to only have 2 node server running instead of 3 (backend, dashboard and front)...
rare-sapphire
rare-sapphire5/30/2024

Set modal as full screen

With this component I need to set modal as full screen. ``` import React, { useState, useCallback, useMemo, useEffect } from 'react'; import { Modal, Col, Row } from 'antd'; export const MapperCardModal: React.FC<MapperCardModalProps> = ({ isOpen, onCancel, onAccept, comparisonType, record }) => {...
plain-purple
plain-purple5/30/2024

Can I extract meta values to put in the notififications lookup

"notifications": { "success": "Successful", "error": "Error (status code: {{statusCode}})", "undoable": "You have {{seconds}} seconds to undo", "createSuccess": "Successfully created {{resource}}",...
plain-purple
plain-purple5/30/2024

rest-data-provider error response

Axios instance not extracting error response message automaticlaly import { HttpError } from "@refinedev/core"; import axios from "axios"; const axiosInstance = axios.create();...
like-gold
like-gold5/30/2024

How to get sum of relationship array item

I want to add a field to my table, but one column is sum all data from a relationship, how to do it
sunny-green
sunny-green5/30/2024

Trigger function when form loading is complete

Is there a way to have a custom function fire once a form has finished loading? Specifically for the ant design hook of useForm?
yappiest-sapphire
yappiest-sapphire5/29/2024

Hide header of Show component

How can I hide the header of the show component? Using antd design
yappiest-sapphire
yappiest-sapphire5/29/2024

Redirect to show page onClick of list item

How can I redirect to the show page of the specific item that is being clicked in the List UI