Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commitccd40ed

Browse files
committed
update web app deps
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
1 parentb813776 commitccd40ed

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

‎web-app/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,6 @@
7070
"react-app-rewired":"2.1.8",
7171
"react-scripts":"3.4.3",
7272
"sass-loader":"8.0.2",
73-
"typescript":"4.2.4"
73+
"typescript":"4.4.4"
7474
}
7575
}

‎web-app/src/services/hooks/useFetch.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ import * as yaml from 'js-yaml'
33

44
constuseFetch=<T>(url:string,options:object={}):{data:T|null;error:string|null;loading:boolean}=>{
55
const[data,setData]=React.useState(null)
6-
const[error,setError]=React.useState(null)
6+
const[error,setError]=React.useState<string|null>(null)
77
const[loading,setLoading]=React.useState(true)
88
React.useEffect(()=>{
99
constfetchData=async()=>{
@@ -28,11 +28,11 @@ const useFetch = <T>(url: string, options: object = {}): { data: T | null; error
2828
setLoading(false)
2929
setData(data)
3030
}catch(error){
31-
setError(error)
31+
setError((errorasany).message)
3232
}
3333
}
3434
fetchData()
35-
},[url])
35+
},[options,url])
3636
return{ data, error, loading}
3737
}
3838

‎web-app/yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15494,10 +15494,10 @@ typedarray@^0.0.6:
1549415494
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
1549515495
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=
1549615496

15497-
typescript@4.2.4:
15498-
version "4.2.4"
15499-
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.2.4.tgz#8610b59747de028fda898a8aef0e103f156d0961"
15500-
integrity sha512-V+evlYHZnQkaz8TRBuxTA92yZBPotr5H+WhQ7bD3hZUndx5tGOa1fuCgeSjxAzM1RiN5IzvadIXTVefuuwZCRg==
15497+
typescript@4.4.4:
15498+
version "4.4.4"
15499+
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.4.4.tgz#2cd01a1a1f160704d3101fd5a58ff0f9fcb8030c"
15500+
integrity sha512-DqGhF5IKoBl8WNf8C1gu8q0xZSInh9j1kJJMqT3a94w1JzVaBU4EXOSMrz9yDqMT0xt3selp83fuFMQ0uzv6qA==
1550115501

1550215502
uc.micro@^1.0.1, uc.micro@^1.0.5:
1550315503
version "1.0.6"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp