How to listen for changes and update state? - Supabase