Closed geoguide closed 2 months ago
When a table doesn't exist or realtime isn't enabled you cannot get errors without having typescript errors.
Steps to reproduce the behavior, please provide code snippets or a repository:
From help on the discord I found I can do this to get the errors:
.on( .. ) .subscribe((status, error) => console.info(status, error)) .on('system', { event: 'error' }, (error: any) => { console.info('system', JSON.stringify(error)) })
but this doesn't appear to be documented and throws this typescript error:
At least allow the typescript to accept the 'system' in this case so that I can get the errors in my code, and at best show how to handle this in the docs
Add any other context about the problem here.
Will close since it's available in version 2.10.5 - https://github.com/supabase/realtime-js/issues/121
Thanks @filipecabaco !!!
Bug report
Describe the bug
When a table doesn't exist or realtime isn't enabled you cannot get errors without having typescript errors.
To Reproduce
Steps to reproduce the behavior, please provide code snippets or a repository:
From help on the discord I found I can do this to get the errors:
but this doesn't appear to be documented and throws this typescript error:
Expected behavior
At least allow the typescript to accept the 'system' in this case so that I can get the errors in my code, and at best show how to handle this in the docs
Screenshots
System information
Additional context
Add any other context about the problem here.