sycamore-rs / sycamore

A library for creating reactive web apps in Rust and WebAssembly
https://sycamore-rs.netlify.app
MIT License
2.79k stars 148 forks source link

Add `track_caller` attribute to `provide_context*` and `use_context` functions #667

Closed lukechu10 closed 6 months ago

lukechu10 commented 6 months ago

This let's us get the line and col info of the panic at the call site rather than in library code.

codecov[bot] commented 6 months ago

Codecov Report

Attention: Patch coverage is 20.00000% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 60.44%. Comparing base (7140c12) to head (6c62c42).

Files Patch % Lines
packages/sycamore-reactive/src/context.rs 20.00% 4 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #667 +/- ## ========================================== - Coverage 60.46% 60.44% -0.02% ========================================== Files 54 54 Lines 8542 8543 +1 ========================================== - Hits 5165 5164 -1 - Misses 3377 3379 +2 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.