Refine

R

Refine

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

Join

ask-any-question

discussions

conscious-sapphire
conscious-sapphire3/21/2024

Update theme in custom Header

How to update theme in custom Header when the Layout component is not in the same place as the useState?
optimistic-gold
optimistic-gold3/21/2024

optionLabel don't work as a function

I'm trying to use useSelect function with a custom label, for this the documentation says that you can use optionLabel as a function but is not working I'm doing it like this: ``` const { selectProps: vehiclesSelectProps } = useSelect({ resource: "vehicles",...
rising-crimson
rising-crimson3/21/2024

Dashboard

How to add Dashboard to my custom sider ?
rising-crimson
rising-crimson3/21/2024

Get Length of Data of Posts to use in Dashboard Charts

Get Length of Data of Posts to use in Dashboard Charts
rising-crimson
rising-crimson3/21/2024

Custom Sider

I need to create a custom sider, also the default project does not contain a component for the Sider, how can i achieve that /
rising-crimson
rising-crimson3/21/2024

Export Button Removes Create Button

Whenever using useExport, it overrides Create, i need both beside each other how can i achieve this.
absent-sapphire
absent-sapphire3/21/2024

antd dynamic form

I am using mern stack suggest code snippets for dynamic row addition in the antd form and also backend support
yappiest-sapphire
yappiest-sapphire3/21/2024

How can i use refine in a existing react project?

Hi, I'm new to react and refine. i wanted to know if it's possible to create a react project first and then add refine for a dashboard....
foreign-sapphire
foreign-sapphire3/21/2024

Multi Data Provider not working for me

Idk what I'm doing wrong but I get an error Error: (0 , _providers_data_providerWEBPACK_IMPORTED_MODULE_4.dataProvider) is not a function I'm using Nextjs, AntDesign in my Layout.tsx...
dependent-tan
dependent-tan3/20/2024

Multiple items on form

I have an object like this:
const marketplaces = { "test": { id: 1, url: 'https://www.google.com', name: 'test' }, "test2": { id: 3, url: 'https://www.google.com', name: 'test' }}
const marketplaces = { "test": { id: 1, url: 'https://www.google.com', name: 'test' }, "test2": { id: 3, url: 'https://www.google.com', name: 'test' }}
I need to iterate over that object and show every key into a input inside a form. Like this:...
fair-rose
fair-rose3/20/2024

How can I refresh data periodically?

``` <Grid item xs={24} lg={12}> <List headerButtons={<ExportButton onClick={triggerExport} loading={exportLoading} />} title={'적립금 지급 내역'}...
sensitive-blue
sensitive-blue3/20/2024

Hash routing

How can i use react router hash routing # createHashRouter
extended-salmon
extended-salmon3/19/2024

Using hook inside event handler

How can I use the onCustom hook in the function that triggers when the user hits the enter key on an ant design <Search> field?
extended-salmon
extended-salmon3/19/2024

Dynamically adding resources

I want to create a dynamic list of resources available to the user at login time by fetching a list of their permissions from a backend server. Is there a way to add resources to the IResourceItem list provided to the <Refine> tag after its instantiation? Or to not provide a resources property to <Refine> initially and then set it later? The goal is to dynamically construct the menu options for a <ThemedLayoutV2> component as well as set the associated routes based on user permissions with a call to my data provider....
optimistic-gold
optimistic-gold3/19/2024

custom route access control

I have created a custom route, but when I enter on it, the can function from the access controll is getting undefined as resource and action. So I can't show the component, what can I do?
optimistic-gold
optimistic-gold3/19/2024

custom route

how can I create a custom route inside one of the resources, and a button in the list component that redirects me to this new custom route?
optimistic-gold
optimistic-gold3/19/2024

How to change a route using a button?

I want create a button in mi list view to route me to another that shows differente information. How can i make a button that change the route for me?
fair-rose
fair-rose3/19/2024

How to exclude a 'point_amount' column from sorting conditions?

``` const columns = React.useMemo<GridColDef<IPointValues>[]>( () => [ {field: 'id', headerName: 'ID'}, { field: 'order_id',...
flat-fuchsia
flat-fuchsia3/19/2024

Customize Strapi V4 DataProvider methods

Can I easily customize only the getMany method for Strapi V4 to always populate=* on every request that it makes? I currently don't have a dataProvider.ts file. I am using the Strapi DataProvider export directly only passing in the URL...
environmental-rose
environmental-rose3/19/2024

make an api call only on button click

make an api call only on button click