hilla icon indicating copy to clipboard operation
hilla copied to clipboard

Include the error in the onError callback of Subscription

Open peholmst opened this issue 1 year ago • 0 comments

Describe your motivation

When subscribing to a flux connection, if you leave out the onError callback and there is an error, Hilla will throw the error and you can see what it is in the console. However, if you provide a callback and there is an error, you will only know that there is an error but you have no idea what it is.

Describe the solution you'd like

Either Hilla should log the error regardless of whether there is a callback or not, or the error should be passed as a parameter to the callback.

Describe alternatives you've considered

No response

Additional context

No response

peholmst avatar Feb 12 '24 19:02 peholmst