CallumBoase / plasmic-supabase

GNU General Public License v3.0
7 stars 5 forks source link

Better handling of loading, mutating & errors in SupabaseProvider #27

Open CallumBoase opened 1 month ago

CallumBoase commented 1 month ago

CONTEXT:

SupabaseProvider has some methods for determining whether data is currently fetching, mutating & showing the user information about errors, however it's not optimally set up.

PROBLEMS

SUGGESTIONS TO SOLVE

A package following similar pattern as Plasmic-Supabase's SupabaseProvider but working with a different API is seen here (Plasmic-Knack -> KnackProvider component). I suggest adopting many of the same patterns in Plasmic-Supabase including:

Video: a well-developed component using Plasmic-Knack is shown in this video. It demonstrates the key suggestsions above: it has full CRUD with optimistic mutations, good error handling & detailed loading notifications

CallumBoase commented 1 month ago

Suggest tackling this with https://github.com/CallumBoase/plasmic-supabase/issues/3 since they inter-relate