Skip to content

MudForm: Catch all OnTimerComplete errors and log to console.#7626

Merged
henon merged 1 commit intoMudBlazor:devfrom
Mr-Technician:fix/mudform-timer-crash
Oct 10, 2023
Merged

MudForm: Catch all OnTimerComplete errors and log to console.#7626
henon merged 1 commit intoMudBlazor:devfrom
Mr-Technician:fix/mudform-timer-crash

Conversation

@Mr-Technician
Copy link
Member

Description

In some edge cases, the MudForm will throw an error due to the timer not being disposed correctly and attempting to interact with the component following disposal. @henon and I discussed it and do not presently have a fix for the issue, but this PR will at least prevent crashes.

How Has This Been Tested?

All existing unit tests pass.

Types of changes

  • Bug fix (non-breaking change which fixes an issue)
  • New feature (non-breaking change which adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)

Checklist:

  • The PR is submitted to the correct branch (dev).
  • My code follows the code style of this project.
  • I've added relevant tests.

@github-actions github-actions bot added bug Unexpected behavior or functionality not working as intended PR: needs review labels Oct 10, 2023
@codecov
Copy link

codecov bot commented Oct 10, 2023

Codecov Report

Attention: 3 lines in your changes are missing coverage. Please review.

Comparison is base (2279d75) 90.60% compared to head (e0291be) 90.57%.

Additional details and impacted files
@@            Coverage Diff             @@
##              dev    #7626      +/-   ##
==========================================
- Coverage   90.60%   90.57%   -0.03%     
==========================================
  Files         427      427              
  Lines       15218    15223       +5     
==========================================
  Hits        13788    13788              
- Misses       1430     1435       +5     
Files Coverage Δ
src/MudBlazor/Components/Form/MudForm.razor.cs 90.19% <50.00%> (-2.59%) ⬇️

... and 1 file with indirect coverage changes

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

@henon henon merged commit 32ec017 into MudBlazor:dev Oct 10, 2023
@henon
Copy link
Contributor

henon commented Oct 10, 2023

Thanks @Mr-Technician !

@Mr-Technician Mr-Technician deleted the fix/mudform-timer-crash branch October 10, 2023 19:02
ilovepilav pushed a commit to ilovepilav/MudBlazor that referenced this pull request Nov 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Unexpected behavior or functionality not working as intended

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants