onError deprecation
I noticed, that onError is marked as deprecated and I was wondering what would be the alternative? When using Error Boundaries this would lead in rendering a complete different component instead of being able to handle errors within my component containing the query.
Or should I catch any errors in my query function and then set somehow the error object in the query?
Or should I catch any errors in my query function and then set somehow the error object in the query?