Refine

R

Refine

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

Join

ask-any-question

discussions

like-gold
like-gold4/21/2024

Telemetry

How to disable telemetry?
ratty-blush
ratty-blush4/21/2024

How can I change data before initializing the form in Edit scenario

Hello, I am currently switching from react-admin and I am loving Refine so far. I am looking to the the reverse of "How can I change the form data before submitting it to the API" which is shown here. https://refine.dev/docs/packages/react-hook-form/use-form/#how-can-i-change-the-form-data-before-submitting-it-to-the-api In Edit scenario, (I am using Edit from @refinedev/mui), my API is returning a field called dueDate which is string but I have to turn it into a Dayjs to to initialize the DatePicker properly. Also, there might be other cases for transforming the data coming from the API before the form can be initialized. Any pointers will be appreciated....
variable-lime
variable-lime4/20/2024

Sending meta with routes in show button

I want to have two buttons in my list view that are both show buttons but use the meta parameter to add additional state information. Doesn’t seem to work. Am I approaching this right? Basically on the show page I should be about to show different content based on this state variable. Ideally it shouldn’t show in the url route....
genetic-orange
genetic-orange4/20/2024

Nesting theme providers

Is it possible to nest theme providers?
conscious-sapphire
conscious-sapphire4/20/2024

How to get relational data?

import { useResourceParams, useTable } from "@refinedev/core"; import { Card, Table } from "antd"; import React from "react"; import { useParams } from "react-router-dom"; ...
flat-fuchsia
flat-fuchsia4/19/2024

refine-firebase with local emulator

Have anyone tried to make refine-firebase connect with local machine firebase-emulator?
quickest-silver
quickest-silver4/19/2024

sandbox previews in docs in my local is not working.

As the title says , i want to check for changes in the code sandbox previews of the docs. but when running docs locally , none of the previews work. what is the solution here ??
like-gold
like-gold4/19/2024

Convert to url

how to convert a filed data to url: exemple: I wanto to convert the "image"in url const { data: imageCheck, isLoading } = useOne<IWorkers>({ resource: "workers", id: params.id, liveMode: "off",...
other-emerald
other-emerald4/19/2024

How can I add custom items to the sider, including a menu item with a sub menu

I know I can use the Sider render function or the resource definition to add items to the sider, but I would like to add a sub menu to the sider in ant design. The menu item should be called "Team Settings" and the items under this should be single pages, one as General, one for members (this could be a team meber lists), one for Email and one for api keys (another list)
like-gold
like-gold4/19/2024

UPload Image

How to upload image using strapi4
other-emerald
other-emerald4/18/2024

redirect to external website

How can I redirect a user to an external website using the refine hooks in react router dom?
other-emerald
other-emerald4/18/2024

Get response from onCreate mutate

I want to create a resource item in my backend, so I thought I would use useCreate instead of a regular post request, however I want to now be able to read the response of this request. ``` const { mutate } = useCreate(); ...
conscious-sapphire
conscious-sapphire4/18/2024

Is it possible to create a NextJS project with ChakraUI ?

I want to create a NextJS refine panel using ChakraUI, is this possible? Because I can only find the Vite project for ChakraUI and the presented UI Frameworks are Ant, Material and Headless when creating a new project
like-gold
like-gold4/18/2024

ImageField

how to adjust the record.photo[0].url` to match my data structure? the log resolt url is: "/uploads/teste_pic_5bad70fb22.jpg"...
correct-apricot
correct-apricot4/18/2024

how can you change the get posts request in the Chakra UI Table example?

Hi, i would like to change the get posts request that i am sending to the backend. I would like to add some new params. How can i do it? I am not able to find where is the get request triggered...
like-gold
like-gold4/18/2024

show image in list page

How to show image in list page using strapi 4, this is my table colum: <Table.Column<IFuncionarios> dataIndex="foto" title={translate("Foto")}...
vicious-gold
vicious-gold4/18/2024

landing page

How to create landing page micro front end separated from auth mechanism
wise-white
wise-white4/17/2024

next.js

are there templates that show next.js
absent-sapphire
absent-sapphire4/17/2024

Hello everyone

I using the useForm to work a create user issue, but i wanna add a validation schema with yup, but i cant find info about it, someone can help me?
puzzled-coral
puzzled-coral4/17/2024

<Authenticated /> Best Practice

I am relatively new to Next and am working on setting up a project using Cognito/Amplfy v5. I have my auth provider set up and am wrapping my protected routes in <Authenticated />. I want to have every route except from /login, /reset-password, etc configured to be behind <Authenticated /> by default, such that I don't need to define it in the layout file for every page and any route not aforementioned will redirect to /login . Is there a way to do this that would follow internal best practices?...