Refine

R

Refine

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

Join

ask-any-question

discussions

painful-plum
painful-plum11/12/2024

Create a download link for each row in a useTable

How can I generate a download link using the id of each row in a table generated using useTable and dataprovider
optimistic-gold
optimistic-gold11/11/2024

Can refine i18n provider change the resource label?

Is it possible for me just to provide a key when defining a resource meta label and refine i18n provider knows to change the label based on the key and language etc?
optimistic-gold
optimistic-gold11/11/2024

define routes outside of app.tsx

When defining all routes and resources in app.tsx it gets pretty bloated. Is there a pattern to break out both routes and resources so that they can be defined closer to the pages that they define?
optimistic-gold
optimistic-gold11/11/2024

i18n provider doesn't match the types from i18next

The type that refine expects in the I18nProvider, the translate key doesn't match the type of the 18next t function. Getting the following error: ```ts Type '(key: string, options?: any, defaultMessage?: string) => string | $SpecialObject | TFunctionDetailedResult<string | $SpecialObject, any>' is not assignable to type 'TranslateFunction'....
sunny-green
sunny-green11/11/2024

intercept save button

<SaveButton {...saveButtonProps} /> how to add extra data by interception?...
sunny-green
sunny-green11/11/2024

how to globally set createMutationOptions and updateMutationOptions?

how to globally set createMutationOptions and updateMutationOptions?
sensitive-blue
sensitive-blue11/10/2024

Saving

On strapi4 we have the createdAt field. How to use the DatePicker to save a different date in this field instead of the current date
exotic-emerald
exotic-emerald11/8/2024

How to get current url programmatically?

how to get current client app url programmatically? so when it's on local, it will shows localhost and port, and if it is deployed , it will shows the current url, is there any exsisting hook to achieve this ? or should I build it from scratch?
painful-plum
painful-plum11/8/2024

Does anyone have a slightly more cutomizable rest-api data provider ?

The built in simple-REST is very constricting. Querying /resource/id/sub-resource Isn't possible AFAIK . Do you just write your own instead?...
afraid-scarlet
afraid-scarlet11/7/2024

useOne filter

How can I filter useOne hook?
optimistic-gold
optimistic-gold11/6/2024

How to enable access logs when you start dev server?

I googled around and found few examples but since I'm pretty new to modern TS/JS I could not make it work and not sure why, so if anyone has any related docs / links please let me know.
absent-sapphire
absent-sapphire11/6/2024

MUI 6

When refine relate mui6?
fair-rose
fair-rose11/6/2024

Set field after modalForm submision

in ant design, I have a form to create a man, in the form is a select component to choose a wife for him (it uses a 'useSelect' hook to fetch the wives list) with a button below the component that opens a modal form to create new wife, I need that after the modal is submitted, the new person created is selected and setted in the select component
exotic-emerald
exotic-emerald11/6/2024

How To use useNavigation 'create' function with additional query params or passing additional data

How to pass additional data when using useNavigation hook when navigating to create resource?
stormy-gold
stormy-gold11/5/2024

InputLabelProps shrink not working

I have the following create component, that uses InputLabelProps with shrink rule listening to hook form, but when something is typed in the input, the label stays above the text typed. how can i fix it? code below: import React from "react"; import type { HttpError } from "@refinedev/core";...
flat-fuchsia
flat-fuchsia11/5/2024

Api request on button press

So I have a resource where the status can be approved or rejected by doing /budget-requests/{id}/approve or ..../reject, what hooks can I use to call this on button press?
stormy-gold
stormy-gold11/5/2024

I have a problem deploying my refine project in Railway.

I have a problem deploying my refine project in Railway. It worked pretty well in Vercel, i had a problem with 404 when acessing other client side routes, but i just had to add vercel.json file in the root directory. Now in railway i am facing the same problem. What can I do?
sunny-green
sunny-green11/5/2024

where to find default pageSize?

in my dataprovider, i did not specify any pagination paramaters, but it is being defaulted to 25, how to change that?
wise-white
wise-white11/5/2024

How to mirror api.crm.refine.dev graphql setup on localhost app so i can host the data locally?

How can I setup my own graphql endpoint using the schema.graphql provided by https://api.crm.refine.dev/graphql so that I can host the graphql endpoint locally, effectively changing the endpoints of https://api.crm.refine.dev/graphql to http://localhost/graphql ?
sensitive-blue
sensitive-blue11/5/2024

How to cache data when using useList hook?

Currently calling the hook like this: ``` const { data: componentsData, isLoading } = useList({ resource: 'components', meta: { variables: { customerCode, environmentCode } },...