Skip to content

Commit

Permalink
tweak reload logic
Browse files Browse the repository at this point in the history
  • Loading branch information
samuelcolvin committed Nov 17, 2023
1 parent d1b0e30 commit d9b6759
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions react/fastui/hooks/dev.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,13 @@ export const DevReloadProvider: FC<{ children: ReactNode; enabled: boolean }> =
if (!listening || failCount >= 4) {
return value
}
console.log('dev reload...')
console.debug('dev reload...')
setValue(value)
}
}

if (enabled && !devConnected) {
devConnected = true
listening = true
listen().then((value) => {
console.debug('dev reload disconnected.')
setValue(value)
Expand Down

0 comments on commit d9b6759

Please sign in to comment.