-
-
Notifications
You must be signed in to change notification settings - Fork 1k
Closed
Description
Describe the bug
Errors happening in the fetcher of the createResource seem to be swallowed:
window.addEventListener('unhandledrejection', (e) => console.error(e));
window.addEventListener('error', (e) => console.error(e));
function getCurrentUserResource() {
const [currentUser] =
createResource<any>(
async () => {
console.log('hello!') // logs
throw 'error'; // swallowed
}
);
return currentUser;
}
getCurrentUserResource();Your Example Website or App
Steps to Reproduce the Bug or Issue
Expected behavior
Expected to see the error in the console
Screenshots or Videos
No response
Platform
- OS: Windows
- Browser: Chrome 113
- Solid: 1.7.5
Additional context
No response
Metadata
Metadata
Assignees
Labels
No labels