Refine

R

Refine

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

Join

ask-any-question

discussions

stormy-gold
stormy-gold3/13/2024

@ant-design/pro-table not working

I added ProTable from ant-desing. The problem is with some features like fix columns which is not working. ``` const columns: ProColumns<ComparisionType>[] = [ { dataIndex: 'comparisonName',...
stormy-gold
stormy-gold3/13/2024

How can i use query params for fetching?

I have this code: `import { NumberField, Show, TextField } from "@refinedev/antd"; import { useShow } from "@refinedev/core"; import { Typography } from "antd";...
continuing-cyan
continuing-cyan3/13/2024

Filtering with between in Supabase

I'm trying to useList while filtering a date column. The format of the date in this column is YYYY-MM-DD. When trying to filter using the "between" operator, I get the following error from Supabase:
authProvider.ts:186 Error: Operator between is not supported
authProvider.ts:186 Error: Operator between is not supported
...
conservative-teal
conservative-teal3/13/2024

use refetch result in next line

When I use refetch functiom from useCustom, the data variable is not updated inmediatly, what can I do so I can use the data in the next line of the refetch?
stormy-gold
stormy-gold3/13/2024

upload file using antD

I need to upload a file with specific format. Exist any hook to do it?
conservative-teal
conservative-teal3/13/2024

uselist params

How can I use useList with params?
correct-apricot
correct-apricot3/12/2024

Issues with remix and useGo with remix router

I have the following error: Cannot update a component (RouterProvider) while rendering a different component (Index). To locate the bad setState() call inside Index, follow the stack trace as described in some of _root.tsx`: ```...
continuing-cyan
continuing-cyan3/12/2024

Creating multiple entries with AntD's Create and useForm with Supabase

I have 2 tables: brokerage_accounts and brokerage_reports. When creating a brokerage_reports entry, I reference a brokerage_accounts entry. What I'd like to do is have a switch where the user submitting the form can select to create a single entry, or multiple entries for all brokerage_accounts entries. I know it needs to be done with a handleOnFinish function, but am unsure how to tweak my code to do what's needed. ```tsx export const BrokerageReportCreate: React.FC = () => { const { form, formProps, onFinish, saveButtonProps } = useForm<IBrokerageAccount>({...
like-gold
like-gold3/12/2024

how to reset modal component state on close?

this is in my modal component: ``` interface Props { modalProps: ModalProps...
optimistic-gold
optimistic-gold3/12/2024

Refine and Server Components

Hello, is there any info regarding Refine and server components? I found this blog post: https://refine.dev/blog/react-server-components/#pros-and-cons-of-react-server-components It's very well written but it does not say anything about refine and server components. I searched in Discord but did not really find a lot....
deep-jade
deep-jade3/12/2024

refine build --sourcemap

refine build --sourcemap misses mapping for src files the custom code and only includes nodemodules
fair-rose
fair-rose3/12/2024

REFINE GRAPHQL MOCK DATABASE

Hello, i have a question, does refine mock database in graphql resetted?
No description
conventional-tan
conventional-tan3/12/2024

why can't use underline as name?

why can't use underline as name? { name: 'temp_products', list: 'temp-products', create: '/temp-products/create',...
conventional-tan
conventional-tan3/12/2024

How to use _ as name but use path - instead of _

How to use as name but use path - instead of
variable-lime
variable-lime3/12/2024

How do I send with admin ID?

``` import { AuthBindings } from '@refinedev/core' import nookies from 'nookies' const mockUsers = [...
conservative-teal
conservative-teal3/11/2024

sidemenu elements name

how can I put a name differente than the resource name in the menu elements
deep-jade
deep-jade3/11/2024

useList disable

Is it possible to disable useList based on prop value
fascinating-indigo
fascinating-indigo3/11/2024

useUpdate

How to update a resource using on button click
distinguished-blush
distinguished-blush3/11/2024

How to current page to 1 on apply filters

Here is my getList code getList: async ({ resource, pagination, filters, meta }) => { const url = ${API_URL}/${resource}; // pagination...
variable-lime
variable-lime3/11/2024

Refresh the page when closing the modal

``` export const PointsModal = ({ type, point_id, member_id }: PointsModalProps) => { const { register, setValue,...