We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8045f55 commit 0342ad4Copy full SHA for 0342ad4
packages/use-dataloader/src/useDataLoader.ts
@@ -129,8 +129,8 @@ const useDataLoader = <T>(
129
130
await onSuccess?.(result)
131
} catch (err) {
132
- dispatch(Actions.createOnError(err))
133
- await ((onError ?? onErrorProvider)?.(err))
+ dispatch(Actions.createOnError(err as Error))
+ await ((onError ?? onErrorProvider)?.(err as Error))
134
}
135
},
136
[
tsconfig.json
@@ -1,5 +1,6 @@
1
{
2
"compilerOptions": {
3
+ "noEmit": true,
4
"target": "esnext",
5
"lib": [
6
"DOM",
0 commit comments