Refine

R

Refine

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

Join

ask-any-question

discussions

ratty-blush
ratty-blush2/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?
rare-sapphire
rare-sapphire2/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.
adverse-sapphire
adverse-sapphire2/26/2024

examples not working

npm create refine-app@latest -- --example app-crm / CRUD apps so sleek, even the cows \ | want in! Let's get mooo-ving with | \ Refine! /...
No description
quickest-silver
quickest-silver2/26/2024

Multiple fields as label for Ant Design's select

Based on a question in this channel titled using multiple fields for the label in select ant design, I used @Alican Erdurmaz's suggested code and arrived at the following result: ```ts import { useSelect } from "@refinedev/antd"; // ......
passive-yellow
passive-yellow2/26/2024

Root access with Casbin

I'm running on a standard React with Supabase build. I have Casbin set up with 3 user roles (superAdmin, admin, user). I've been following along with this tutorial: https://refine.dev/blog/refine-pixels-6. So far it's pretty much working as expected during the setup, but I'm unable to get get permissions set for the site route. The following just says that the user doesn't have permission: ``` p, superAdmin, , (list)|(show)|(edit)|(delete) p, admin, , (list)|(show)|(edit)|(delete) p, user, , (list)|(show)|(edit)...
harsh-harlequin
harsh-harlequin2/26/2024

Call check when changing resources

When I am inactive for more than 10 minutes and the access token expires and then I click in the menu to move to another resource I get Unauthorized error. How can I trigger check() when changing resources?
subsequent-cyan
subsequent-cyan2/26/2024

Trigger built in notifications

How can I show a notification using the built in notification snackbars? Is there any method I can use as a service without having to reimplement notification provider?
foreign-sapphire
foreign-sapphire2/26/2024

refine mui

i am getting this error when i am trying to use the materialui notificationprovider Error: Objects are not valid as a React child (found: object with keys {resource}). If you meant to render a collection of children, use an array instead....
equal-aqua
equal-aqua2/26/2024

Hasura dataprovider : How to query with _not operator ?

How can i query data with _not operator like this `query query { event(where: {_not: {group_event: {event__id: {_is_null: false}}}}, limit: 10) { id...
generous-apricot
generous-apricot2/26/2024

How would I integrate table filters into this?

import React from "react"; import { IResourceComponentsProps, BaseRecord } from "@refinedev/core"; import { useTable, List, EditButton, ShowButton } from "@refinedev/antd"; import { Table, Space } from "antd"; ...
equal-aqua
equal-aqua2/26/2024

Filter nested fields

I use hasura dataprovider, and i wonder how to use nested filter in order to apply filter on nested field My goal is to make the following graphql query (specially the user_activity_aggregate) `query event {...
fascinating-indigo
fascinating-indigo2/26/2024

Does refine supabase support functions?

I need to updated multiple tables one of them has many-to-many relationship in the same edit. Does refine supabase implementation to support running supabase functions?
fascinating-indigo
fascinating-indigo2/26/2024

User management

How can I manage users, edit, delete & add them via postgreSQL
fascinating-indigo
fascinating-indigo2/26/2024

How can I edit/ remove & add users

How can I edit/ remove & add users
gradual-turquoise
gradual-turquoise2/26/2024

how to set initialValues to select?

how to set initialValues to select?
gradual-turquoise
gradual-turquoise2/26/2024

I can't get updated form value select option

I can't get updated form value select option
gradual-turquoise
gradual-turquoise2/26/2024

how to set null or undefined to avoid setting -1 in edit form

how to set null or undefined to avoid setting -1 in edit form
optimistic-gold
optimistic-gold2/26/2024

notifciaton

when the server return status with message what should I do to make notifciatonProvider by refine can shows the server message response ?
rare-sapphire
rare-sapphire2/26/2024

refresh user token in supabase

I'm using supabase as my auth provider. My user is still logged in, but his token has expired. Shouldn't the auth provider automatically refresh the user's token as they are navigating the site?
extended-salmon
extended-salmon2/26/2024

Disable button next page

``` const { dataGridProps, search, filters } = useDataGrid<BaseRecord, HttpError, IPointsFilterVariables>({ pagination: { mode: 'server', },...