Skip to content

Commit

Permalink
build: update all packages, appease next build
Browse files Browse the repository at this point in the history
the type checking in `next build` mistakenly thinks that we set `target`
to something older than `es2020`, so we need the `BigInt(10)` instead of
`10n` ¯\_(ツ)_/¯
  • Loading branch information
chadoh committed Jul 3, 2024
1 parent 02e8bd5 commit 82d40be
Show file tree
Hide file tree
Showing 8 changed files with 1,591 additions and 694 deletions.
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
18.14.2
18.20.3
6 changes: 3 additions & 3 deletions hooks/useSubscription.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export function useSubscription(
paging[id] = paging[id] || {}

React.useEffect(() => {
let timeoutId: NodeJS.Timer | null = null
let timer: ReturnType<typeof setTimeout> | null = null
let stop = false

async function pollEvents(): Promise<void> {
Expand Down Expand Up @@ -83,15 +83,15 @@ export function useSubscription(
console.error('Poll Events: error: ', error)
} finally {
if (!stop) {
timeoutId = setTimeout(pollEvents, pollInterval)
timer = setTimeout(pollEvents, pollInterval)
}
}
}

pollEvents()

return () => {
if (timeoutId != null) clearTimeout(timeoutId)
if (timer !== null) clearTimeout(timer)
stop = true
}
}, [contractId, topic, onEvent, id, pollInterval])
Expand Down
4 changes: 0 additions & 4 deletions next.config.js

This file was deleted.

4 changes: 4 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
/** @type {import('next').NextConfig} */
const nextConfig = {}

export default nextConfig
Loading

0 comments on commit 82d40be

Please sign in to comment.