flat-fuchsia
flat-fuchsia11mo ago

Supabase provider

What I'm doing wrong? I trying to use supabase as a provider I connect the provider and I'm able to see my first table resources={[{ name: "hotels", list: "/hotels", create: "/hotels/create", edit: "/hotels/edit/:id", show: "/hotels/show/:id" }]} list and create are working fine, but in my list I don't see the delete button also edit and show button are not working. I'm using the next example out of the box, just as in the example, only change the inferencer, you can see in the image. RLS is enable on supabase.
No description
5 Replies
kapa.ai
kapa.ai11mo ago
Hi @geekyland. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave: ---------------------- Based on the information provided in the extracts, it seems like you have correctly set up the resources for your Refine component. However, if the delete, edit, and show buttons are not working as expected, it might be due to some missing configurations or issues with the CRUD pages. Here are a few things you can check: 1. CRUD Pages: Ensure that you have correctly implemented the CRUD pages (PostList, PostCreate, PostEdit, etc.) as shown in the extract (https://refine.dev/docs/packages/documentation/data-providers/supabase). These pages should be able to interact with data from the API. 2. Delete Feature: The delete feature needs to be added to the list page, show page, and edit page as mentioned in the tutorial (https://refine.dev/docs/tutorial/adding-crud-pages/headless/add-delete-feature). Make sure you have followed the steps correctly. 3. Auth Provider: If you are using authentication, ensure that the auth provider is correctly registered in the Refine component as shown in the extract (https://refine.dev/docs/packages/documentation/data-providers/supabase). This is necessary to activate auth features in your app. 4. Supabase Client: Make sure that the supabaseClient is correctly set up with the correct SUPABASE_URL and SUPABASE_KEY as shown in the blog post (https://refine.dev/blog/refine-pixels-3). The Refine component's dataProvider, authProvider, and liveProvider objects utilize this supabaseClient to connect to the PostgreSQL server hosted on Supabase. If you are still facing issues, it would be helpful to check the console for any error messages or warnings. These could provide more insight into what might be going wrong. ---------------------- Note: you can ask me a follow up question by @ mentioning me again :speech_balloon: ----------------------
kapa.ai
kapa.ai11mo ago
<@884959910595538984> kapa.ai is still learning and improving, please let us know how it did by reacting below
other-emerald
other-emerald11mo ago
Hi @geekyland, created new project with Antd and Supabase. edit and delete features working as expected. Can you provide reproducible example on codesandbox ? if you, i will happy to help
flat-fuchsia
flat-fuchsia10mo ago
Hi! I manage to make it work, now I'm not usig the inferencer. Thanks! I have other question, can I make it here? or in other post?
other-emerald
other-emerald10mo ago
you can open other post. I think When you open another post, people who have the same problem can find it more easily 🥹