supabase-js icon indicating copy to clipboard operation
supabase-js copied to clipboard

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

Open JeongJuhyeon opened this issue 1 year ago • 0 comments

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.

JeongJuhyeon avatar Jan 21 '24 02:01 JeongJuhyeon