Skip to content

Commit

Permalink
no-op fastRefresh rather than reloading
Browse files Browse the repository at this point in the history
  • Loading branch information
ztanner committed Jul 18, 2023
1 parent f7940ab commit 6cb83ba
Showing 1 changed file with 1 addition and 5 deletions.
Expand Up @@ -517,11 +517,7 @@ export default function HotReload({
const sendMessage = useSendMessage(webSocketRef)

const handleFastRefresh = useCallback(() => {
if (fastRefresh) {
fastRefresh()
} else {
window.location.reload()
}
fastRefresh?.()
}, [fastRefresh])

useEffect(() => {
Expand Down

0 comments on commit 6cb83ba

Please sign in to comment.