window.addEventListener('unhandledrejection', (e) => console.error(e));
window.addEventListener('error', (e) => console.error(e));
function getCurrentUserResource() {
const [userData] =
createResource<any>(
async () => {
console.log('hello!') // logs
throw 'error'; // swallowed
}
);
return userData;
}
getCurrentUserResource();
window.addEventListener('unhandledrejection', (e) => console.error(e));
window.addEventListener('error', (e) => console.error(e));
function getCurrentUserResource() {
const [userData] =
createResource<any>(
async () => {
console.log('hello!') // logs
throw 'error'; // swallowed
}
);
return userData;
}
getCurrentUserResource();