最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Why is supabase not returning any data when I still have rows of data in my table on react native? - Stack Overflow

programmeradmin0浏览0评论

I am using expo router react native and I am implementing supabase as a database option in my app. I have a console.log of the data from the select function but everytime I run it I get [] logged and nothing else. My select function can't read the data in my tables on supabase (my tables do have rows of data in it) How do I fix this issue? Here is the code

const checkTransferForums = async () => {
    const {
      data: { user: User },
    } = await supabase.auth.getUser();

    const { data, error } = await supabase.from('user_forums').select('user_id');

    if (error) {
      console.log('

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论