supabase / supabase-js

An isomorphic Javascript client for Supabase. Query your Supabase database, subscribe to realtime events, upload and download files, browse typescript examples, invoke postgres functions via rpc, invoke supabase edge functions, query pgvector.
https://supabase.com
MIT License
2.86k stars 220 forks source link

Add warning to docs that supabase-js doesn't support fire-and-forget #951

Open JeongJuhyeon opened 3 months ago

JeongJuhyeon commented 3 months ago

Improve documentation

Link

Not sure where best location would be

Describe the problem

For most who have done async calls Typescript or Javascript, it's common to sometimes "fire and forget" (i.e. not await the promise) for async calls where they don't care about the result. This doesn't work with supabase-js, the query will not be executed. From a technical perspective it makes sense since it's a query builder, but many people have never used one and have only used async calls with libraries that directly make http requests or execute db statements.

Describe the improvement

A clear and concise description of the improvement.

Additional context

Add any other context or screenshots that help clarify your question.