https://supabase.com/ logo
Join Discord
Powered by
# off-topic
  • x

    Xyo

    07/27/2021, 1:44 PM
    Yeah I’m not a react person so can’t really advise there haha. But yeah, you’d generally have a global manager for state or whatever
  • x

    Xyo

    07/27/2021, 1:44 PM
    That you use across your app
  • x

    Xyo

    07/27/2021, 1:45 PM
    Calling
    auth.user()
    in components is also not a bad thing 🤷‍♂️
  • s

    Scott P

    07/27/2021, 1:45 PM
    We discussed this in the ideas and suggestions channel earlier - put an example in there: https://discord.com/channels/839993398554656828/867348150741237790/869539855493906472
  • m

    M1K3

    07/27/2021, 1:46 PM
    ok thanks!
  • s

    Scott P

    07/27/2021, 1:46 PM
    It's react-native, but it should work just fine with react too with a few minor changes (e.g. using localstorage directly instead of async-storage)
  • x

    Xyo

    07/27/2021, 1:46 PM
    I’m curious if there were any talks about being able to pass a custom “fetch” to supabase client. Been looking through discussions and issues and couldn’t find any mention
  • x

    Xyo

    07/27/2021, 1:47 PM
    Context: SvelteKit offers built in caching for fetch responses, but they use a wrapper around fetch for it - so you’d have to use the SvelteKit’s fetch to take advantage of that
  • m

    M1K3

    07/27/2021, 1:48 PM
    ok
  • x

    Xyo

    07/27/2021, 1:49 PM
    Though now that I think about it, the fetch object would need to be passed to Supabase calls, not to the client constructor, since it’s page specific 🤔
  • x

    Xyo

    07/27/2021, 1:50 PM
    Guess that’s just a case of calling postgrest api directly, not really something the JS client should handle.
  • a

    air16

    07/27/2021, 1:50 PM
    Hi all, how much time does it take to restore a paused project ? Is it a matter of minutes or hours ? Thanks
  • a

    a d

    07/27/2021, 1:50 PM
    guys can i use supabase in discord bot imean is it reliable and fast enough 🤔
  • a

    a d

    07/27/2021, 1:51 PM
    sorry if im interupting discussoins
  • x

    Xyo

    07/27/2021, 1:51 PM
    Depends on how reliable and fast you need it to be
  • s

    Scott P

    07/27/2021, 1:51 PM
    Most of the API calls are routed to
    /rest/v1
    ,
    /realtime/v1
    , or
    /auth/v1
    , so I can't see any specific reasons why it wouldn't be feasible to allow a custom fetcher to be added when initialising a new instance of the client
  • m

    M1K3

    07/27/2021, 1:52 PM
    One more question probably for a supabase dev... For Twitter auth how can I get the username of the user?
  • m

    M1K3

    07/27/2021, 1:52 PM
    id rather have that than the email 😛
  • x

    Xyo

    07/27/2021, 1:52 PM
    Yeah, though in SvelteKit’s case, you would get the fetcher during a page load, not at any time - unless I just skipped part of the docs. If you can’t get it at any time, you’d have to pass the fetcher in the methods and that’s ugly
  • x

    Xyo

    07/27/2021, 1:52 PM
    You already get their username by default, don’t you?
  • a

    a d

    07/27/2021, 1:52 PM
    imean like in responsiveness time under 500ms or smthing
  • x

    Xyo

    07/27/2021, 1:52 PM
    Should go into
    full_name
  • m

    M1K3

    07/27/2021, 1:53 PM
    oh sorry i worded that incorrectly. how would i insert the username instead of the email into the auth users table?
  • x

    Xyo

    07/27/2021, 1:53 PM
    Well responsiveness depends on what you actually do there. Supabase is Postgres + PostgREST + Kong, hosted on AWS. They are all amazing things
  • x

    Xyo

    07/27/2021, 1:53 PM
    If you write proper queries, it flies
  • s

    Scott P

    07/27/2021, 1:53 PM
    https://github.com/supabase/supabase/discussions/2180 - Related PR: https://github.com/supabase/gotrue/pull/127
  • x

    Xyo

    07/27/2021, 1:53 PM
    The region is gonna be a huge factor in your responsiveness.
  • a

    a d

    07/27/2021, 1:54 PM
    do you think it's faster than firebase as firebase is nosql based
  • m

    M1K3

    07/27/2021, 1:54 PM
    ohh sweet
  • x

    Xyo

    07/27/2021, 1:54 PM
    Nosql doesn’t mean faster or slower
1...111213...392Latest