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-gold3/1/2024

Create a custom hook like useMany or useOne without sending ids

I have this ``` const { data } = useMany<any, HttpError>({ ids: [], resource: RESOURCES.WEB_FORM_LOCATIONS,...
exotic-emerald
exotic-emerald3/1/2024

i want to get one more field with useSelect

const {options, queryResult} = useSelect({ resource, optionValue: useFilter ? "country_code" as any : idField as any, optionLabel: "name",...
wise-white
wise-white3/1/2024

how to manipulate data for stepForm ant d

how to manipulate data for stepForm ant d before calling api
sensitive-blue
sensitive-blue3/1/2024

Trouble Integrating NextUI with Next.js App Routing Mode: Need Help!

I've downgraded next to 14.0.4, and it's working now
probable-pink
probable-pink3/1/2024

Bearer token with all routing

How can I get a bearer token authorization header (whose value comes from a cookie) to be inserted into the request of any and every page navigation?
xenial-black
xenial-black3/1/2024

Query distinct data in useDataGrid

I have a table with many entries identified by a reference and with a timestamp field. I want to generate a DataGrid that shows only the latest distinct rows. How can I configure the hook to perform this request?
deep-jade
deep-jade3/1/2024

refine as a subroute in nextjs app

I have an existing NextJS app with NextAuth. How can i add retool to only a sub route of /admin?
genetic-orange
genetic-orange2/29/2024

useSelect pagination next page load trigger

When using useSelect with pagination, how do I change pages?
metropolitan-bronze
metropolitan-bronze2/29/2024

antd-img-crop

As the Ant Design documentation in the "Upload" component suggests, I imported the "antd-img-crop" library and wrapped the Upload component with it (on a form.item) to handle avatar uploads, so that all of them are squares. The problem is that <ImgCrop> seems to not passing the result to the form.item parent that handle the form data, so that it is never submitted. How i should do to use <ImgCrop> correctly to make it work?...
flat-fuchsia
flat-fuchsia2/29/2024

select props

How to use select props to get 2 datas from same resource
continuing-cyan
continuing-cyan2/29/2024

Create & edit a many to many relationship with supabase

Hi, I'm new to Refine and I'm looking for a more elegant way to manage many-to-many relationships with Supabase as my data provider. I've looked at the useMany() example in the documentation, but it seems to focus on one-to-many relationships. My tables are structured as follows: contacts <-> contact_has_address <-> address Currently, I'm using multiple useCreate and useCreateMany hooks to create these relationships, but it feels a bit clunky. For example, I first create the address, then I create the contact_has_address record to link both tables. However, editing this setup is proving to be challenging....
yappiest-sapphire
yappiest-sapphire2/29/2024

Host an app

I want to host my app via github pages, what should I add to my code and which commands should I run? My project uses Vite and MUI
extended-salmon
extended-salmon2/29/2024

I want to work with local variables

Hi there, I have an implementation with NextJS and AntDesign using Refine but in some cases I don't see data because data is coming from api-fake-refine-dev api. But in this case data is not coming to api. I am writing code for poc and api is not ready for this case. But I want to see variables. Can you give advice for this reason?...
rare-sapphire
rare-sapphire2/29/2024

Inferencer: Nested Strapi Components

How can I get nested components from a Strapi API resource to automatically display using the inferencer in the list and show pages?
yappiest-sapphire
yappiest-sapphire2/29/2024

Host app

Can I host my app made by Refine template for free?
absent-sapphire
absent-sapphire2/29/2024

how do you use the devtools

devtool setup?
absent-sapphire
absent-sapphire2/28/2024

CLI add resource for nextjs template issue?

I created a project today using the latest refine-nextjs template and the following choices: data-provider-custom-json-rest antd auth-provider-google...
quickest-silver
quickest-silver2/28/2024

Where can I find the demo backend for the app crm example

Can you also find the corresponding backend somewhere as an example for the app crm example repo https://github.com/refinedev/refine/tree/master/examples/app-crm
genetic-orange
genetic-orange2/28/2024

Is it possible to update one of the records in a Table?

One of the actions in my table consists of making an API call and changing the status of a record from active to inactive. I want to update the record in the table to reflect the action performed. How can I do this? Here's a snippet of my current code: ```tsx export default function StoresList() { const { tableProps, } = useTable<StoreList>({...