Refine

R

Refine

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

Join

ask-any-question

discussions

metropolitan-bronze
metropolitan-bronze2/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>({...
extended-salmon
extended-salmon2/28/2024

Dataprovider resulting in String instead of Int

I am using the Hasura dataprovider, and i've passed the following const gqlDataProvider = dataProvider(client, {idType: "Int"}); Expecting it to give an Int, but it keeps giving me a string, when my schema needs an Int. ...
metropolitan-bronze
metropolitan-bronze2/28/2024

How to make API call using Data Provider?

Considering the following code, how do I make an API call to a specific endpoint such as stores/block using my data provider's "custom" method? ```tsx type StoreList = { id: number;...
conscious-sapphire
conscious-sapphire2/28/2024

inferencer data from table

With the code: ``` import { IResourceComponentsProps } from "@refinedev/core"; import { AntdInferencer } from "@refinedev/inferencer/antd";...
xenial-black
xenial-black2/28/2024

UnsavedChangesNotifier doesn't work on browser back button

It seems that when a form is being exit without save in every scenario the <UnsavedChangesNotifier /> of @refinedev/react-router-v6 will always get trigger, however when press back button of the browser it doesn't get trigger
eastern-cyan
eastern-cyan2/28/2024

Filter nested fields in NestJS-Query

How do I filter nested fields when using useTable hook from Antd? Dot notation doesn't seem to work
fascinating-indigo
fascinating-indigo2/28/2024

Can I use Ant Design and Tailwind together at Refine?

Hi there, I am new to the frontend technologies so I am sorry for asking this question. But when I search called "full stack frontend framework", I find Refine. Also I want to create admin dashboard and data analytics dashboard together. In this case, Tremor is good solution for this case. Because Tremor chart is very good solution for my case. (Instead of creating components to first time) But also I like to use AntDesign in Refine because it is easy to use. When I read this article and I try this but I can't see dashboards like this and also can't implement Ant Design code with Tailwind...
genetic-orange
genetic-orange2/28/2024

How to do custom auth (REST) ?

Hi, I need guidance for making dashboard in next js I want to use custom auth, headlesss ui to style as per design requirement I know refine using react query which is great - I find refine AuthPage component has many built in component like LoginPage, ForgetPasswordPge, RegisterPage etc...
stormy-gold
stormy-gold2/28/2024

How to change the default port?

How to change the default port?
generous-apricot
generous-apricot2/28/2024

How to get live app updates during Dev time

Hi all, I finally decide to ask the question here after 2h of turning around without solution. I've got a docker-compose.yml to initiate multiple apps (wp, api, strapi, refin, db, ...) and a Dockerfile in my refine app directory. But I cannot find the way to work in a development mode with refine....
eastern-cyan
eastern-cyan2/27/2024

Authenticated now working properly

Hello, I have my app setup as follows: ``` <Routes> <Route path="/register" element={<RegisterPage />} /> <Route path="/login" element={<LoginPage />} />...
extended-salmon
extended-salmon2/27/2024

onFinish, being sent as object instead of input

I'm using onFinish to pass input, but it's being sent as an object, how can i change this?
conscious-sapphire
conscious-sapphire2/27/2024

Distinct Table

How can I setup my table to only show the first occurrence of a record, e.g. distinct value? ``` <Table.Column dataIndex="Client" title="Client" filterDropdown={({ setSelectedKeys, selectedKeys, confirm, clearFilters }) => (...
conscious-sapphire
conscious-sapphire2/27/2024

filters in url route

I am loading my default route for a table, however the filters are being added in the url route by default, when no filters are applied. how can I stop this?
rare-sapphire
rare-sapphire2/27/2024

No application Connected

When i create a new refine project using npm create refine-app@latest ..and a followed all the steps to set up the project using vite...but when i run npm run dev, i get an error at the top of my landingpage saying No Application Connected...and even when i make changes in the code it doesn't reflect in the browser...what could be wrong?
unwilling-turquoise
unwilling-turquoise2/27/2024

global state and context

i couldn't find anything on documentation regarding global state management and contexts. is there a way to manage all of my contexts built in in refine or a way for global state management? if not, which library would be best to use with refine for global state management? is zustand okay?
conscious-sapphire
conscious-sapphire2/27/2024

String filtering on table

Antdesign table, search for sub-string within returned value and display in table
conscious-sapphire
conscious-sapphire2/27/2024

Substring Filter

Is there a way to search a filter and match all records including a sub-string, e.g. searching 703 would return the records UK703E and UK703A?
fascinating-indigo
fascinating-indigo2/27/2024

access control caching

Hi, the caching of access control provider does not seem to work. The caching in general works (for resource fetching) and I have explicitly defined the cache and stale parameters for accessControlProvider, but on navigation to a different menu I see that my custom accessControlProver gets called every time. Is this expected?
afraid-scarlet
afraid-scarlet2/27/2024

Auto refresh supabase token

I'm using a supabase auth provider (with remix). Shouldn't it automatically refresh a user session token when it expires? My user is still logged in, but if I try to get the user from the token (from a cookie) on the backend (in a remix loader function), supabase says the token has expired.