axum-live-view icon indicating copy to clipboard operation
axum-live-view copied to clipboard

Should `LiveView::{mount, update}` be fallible?

Open davidpdrsn opened this issue 2 years ago • 0 comments

Currently LiveView::{mount, update} allows you to return an error. If that happens the view is shutdown and the client will reconnect and a new view is created. However I'm not sure there actually is much utility to that. Ideally you should always handle all errors and show them nicely to the user.

So maybe we should consider making those methods not return a result and thus require users to handle all errors.

davidpdrsn avatar Mar 18 '22 13:03 davidpdrsn