Skip to content

feat(nuxt): add bad connection detection to example page #966

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 5 commits into from
Apr 22, 2025

Conversation

shellmayr
Copy link
Member

@shellmayr shellmayr commented Apr 17, 2025

Before:
Screenshot 2025-04-17 at 13 22 00

After:
Screenshot 2025-04-17 at 13 22 07

Copy link

github-actions bot commented Apr 17, 2025

Messages
📖 Do not forget to update Sentry-docs with your feature once the pull request gets approved.

Generated by 🚫 dangerJS against e51769a

Copy link

codecov bot commented Apr 17, 2025

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 24.28%. Comparing base (aefa4a2) to head (e51769a).
Report is 1 commits behind head on master.

Additional details and impacted files
@@           Coverage Diff           @@
##           master     #966   +/-   ##
=======================================
  Coverage   24.28%   24.28%           
=======================================
  Files         121      121           
  Lines       12883    12883           
  Branches      715      715           
=======================================
  Hits         3128     3128           
  Misses       9734     9734           
  Partials       21       21           
Flag Coverage Δ
unit-tests 24.28% <ø> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

@shellmayr shellmayr marked this pull request as ready for review April 17, 2025 11:30
@shellmayr shellmayr requested review from a team and s1gr1d April 17, 2025 11:30
@@ -158,6 +158,16 @@ Feel free to delete this file.
import { useFetch} from '#imports'

const hasSentError = ref(false);
const isConnected = ref(true);

onMounted(async () => {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Using async callbacks here could lead to unexpected state updated when the component mounts/unmounts or it could lead to console warnings. But that's an edge-case thing and as this is just an example page I think it's perfectly fine.

@shellmayr shellmayr merged commit 8cad62a into master Apr 22, 2025
40 checks passed
@shellmayr shellmayr deleted the shellmayr/feat/add-bad-connection-detection-nuxt branch April 22, 2025 06:34
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.

2 participants