Skip to content

fix: remove console.debug from useRoutePrefetch.ts#1282

Open
thuanpham582002 wants to merge 1 commit intoWei-Shaw:mainfrom
thuanpham582002:fix/remove-console-debug-prefetch
Open

fix: remove console.debug from useRoutePrefetch.ts#1282
thuanpham582002 wants to merge 1 commit intoWei-Shaw:mainfrom
thuanpham582002:fix/remove-console-debug-prefetch

Conversation

@thuanpham582002
Copy link

Summary

  • Remove console.debug('[Prefetch] Failed to prefetch component:', error) from the prefetch error handler
  • Remove the surrounding import.meta.env.DEV guard block since it only contained the console.debug call
  • Prefetch failures are expected and non-critical; silent handling with the existing comment is sufficient

Test plan

  • Verify route prefetching still works correctly
  • Confirm no runtime errors when prefetch fails silently

Remove console.debug('[Prefetch] Failed to prefetch component:', error)
and the surrounding DEV-only guard block. Prefetch failures are expected
and non-critical, so silent handling is sufficient.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant