Supabase Tutorial #3 - Fetching Data
Вставка
- Опубліковано 31 сер 2022
- In this Supabase tutorial you'll learn how to fetch data from the database using the Supabase client library.
🐱💻 Access the course files on GitHub:
github.com/iamshaunjp/Supabas...
🐱💻 React Complete Tutorial (on Net Ninja Pro):
netninja.dev/p/build-websites...
🔥🔥🔥 Other resources:
Supabase docs - supabase.com/docs
⭐⭐ Get access to all free & PREMIUM courses on Net Ninja Pro:
net-ninja-pro.teachable.com/p...
All those who are facing empty array value. Please disable RLS(Row Level Security) or add a policy for RSL. I spent 4 hours on that
Thank you very much! I had the same error, your comment helped.
Jesus Christ, you saved me. Was starting to get annoyed by this, thanks!
Thank you bro, I just recently got this issue and im so confused what happened, i will check it later coz im so tired😂
Real one
😂😂 I just got this issue and solved it after 5 hours and now seeing your comment still thanks
Just started following this series.. I do prefer Firebase, but I gotta say.. Supabase UI and its own client looks super easy to learn and use... Continue with it please, I am keen to complete this series.
Subabase definitely gives a great first impression and has some really easy to use starter materials. Very impressive! Looking forward to this series 😁
I thought the same about Firebase. Seems amazing and I am so down for this series too :)
Hey mate, you run one of the best programming channels on YT and I am very thankful for your content.
Thanks Ben, that means a lot :)
why my data are not showing while there is no error.
One question, how could you fetch data from database when you had no RLS enabled and used anon key witch only works with RLS enabled?
I am reaching to the console.log(data) thing but it is not showing any data just bunch of other things and even when i tried to console.log(data.title) as i have created on superbase it is saying undefined
Been following this tutorial and has been a god send for the project Im working on, an issue I am running into with my forms that I am creating is that the id row isnt auto incrementing, keeps trying to duplicate the ID. I can hard code it in the dashboard and run it that way and it'll work, not sure what Im doing wrong
Does supabase provide any tools to allow you to create the db schema in the file system?
i used this to for a sveltekit project of mine and modified the code for sveltekit but it is'nt working? Help!
If i want to uplaod a diet plan and retrieve and display it in my flutter app do i need to also create a table ? Please need help struggling here lol!!!
Love the course ... but sad cuz it doesn't cover auth ...
on line 14 of Home.js put .from("Smoo thies") instead of .from('recipes') idk why he put that on the github.
@The Net Ninja please update your react tutorial. sir, some things have changed. example -> react routing.
fetched data are not showing while no error, how to fix?
As said by other, disable RLS for that table in the dashboard, top right corner just under the "Feedback on this page?" button.
How Fetching a Single Item?
If anyone got fetch error, in my case it was a missed spell. "Smothies" on Supabase and "Smoothies" on react with two o's.
Shouldnt you be fetching data from a separate backend section (backend folder), instead of doing it in the Home.js file of essentially your frontend part of your project?
Exactly.
Too bad you don't do this with Vue, I'm confused with fetching & error handling
Thank you teacher 🙏🏻
Thanks for your support Isaac!
is this secure ? calling the supabase on the client .?
Thanks for helping 😇
Thanks for watching Bhumesh! :)
fetch returns null
what about pagination ? hmm
Perfect !
Does anyone else get 'Uncaught ReferenceError: process is not defined' when they try connecting their .env variables to the superbaseClient file?
I do. Did you find a solution?
make sure you have dotenv npm package installed and make sure you have
import { config } from "dotenv";
const dotenvConfig = config();
if (dotenvConfig.error) {
throw dotenvConfig.error;
} at the top of your file @@azkaarkhatib
try adding NEXT_PUBLIC before the variables
👍🏻👍🏻🔥
why my data are not showing while there is no error.
same here
turn off your RLS protocol in supabase, fixed my issue
@@sh1ro9666 worked for me, thanks a lot
good info
Hope it was helpful! :)
Thank you so much @netninja 🥰❣
7/10? Hmm... Considering building a banana blaster.
{2023-03-20}