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....
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....
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";
...
refine-firebase with local emulator
Have anyone tried to make refine-firebase connect with local machine firebase-emulator?
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 ??
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",...
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)
redirect to external website
How can I redirect a user to an external website using the refine hooks in react router dom?
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();
...
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
ImageField
how to adjust the record.photo[0].url` to match my data structure?
the log resolt url is: "/uploads/teste_pic_5bad70fb22.jpg"...
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...
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")}...
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?
<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?...