TanStackT
TanStack2y ago
2 replies
rubber-blue

Error on `beforeLoad` return

I have an asynchronous
beforeLoad
function. Its not clear to me why, but sometimes (especially when running in Safari on mobile) there is an error. Refreshing the page always fixes the problem. However, my main issue is that the error message is:

Unhandled Promise Rejection: [object Object]
(anonymous function) - router.ts:1613
enqueueJob
(anonymous function) - router.ts:1607


Is there anything I can do to get a more helpful error message and start tracking down the problem?
Was this page helpful?