hey can someone explain exactly how to add real ti...
# help
a
hey can someone explain exactly how to add real time subscription to this
Copy code
const update = async () => {
        try {
            const { error } = await supabase.from('event_ticket').insert([{ name, event_id }]);

            if (error) throw error;
        } catch (e) {
            console.log(e.message);
        } finally {
            console.log('success');
            $showModel = false;
            document.body.classList.remove('overflow-y-hidden');
        }
    };
n
Hello @Ape R Us! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
g
It is not clear what you want realtime to do in this what appears to be insert operation.
n
Ape R Us (2022-05-22)
a
yea after i insert, i would like it to update the data its suppose to
example if i insert or update, the data wont show up unless i refresh the page