Skip to content

Update deps #541

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Nov 21, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
update web app deps
Signed-off-by: shmck <shawn.j.mckay@gmail.com>
  • Loading branch information
ShMcK committed Nov 21, 2021
commit ccd40ed9371a02de17a1a1e3c5a00a31876131e8
2 changes: 1 addition & 1 deletion web-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,6 @@
"react-app-rewired": "2.1.8",
"react-scripts": "3.4.3",
"sass-loader": "8.0.2",
"typescript": "4.2.4"
"typescript": "4.4.4"
}
}
6 changes: 3 additions & 3 deletions web-app/src/services/hooks/useFetch.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import * as yaml from 'js-yaml'

const useFetch = <T>(url: string, options: object = {}): { data: T | null; error: string | null; loading: boolean } => {
const [data, setData] = React.useState(null)
const [error, setError] = React.useState(null)
const [error, setError] = React.useState<string | null>(null)
const [loading, setLoading] = React.useState(true)
React.useEffect(() => {
const fetchData = async () => {
Expand All @@ -28,11 +28,11 @@ const useFetch = <T>(url: string, options: object = {}): { data: T | null; error
setLoading(false)
setData(data)
} catch (error) {
setError(error)
setError((error as any).message)
}
}
fetchData()
}, [url])
}, [options, url])
return { data, error, loading }
}

Expand Down
8 changes: 4 additions & 4 deletions web-app/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -15494,10 +15494,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

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

uc.micro@^1.0.1, uc.micro@^1.0.5:
version "1.0.6"
Expand Down