Skip to content
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

fix: error when navigating exam units #1157

Merged
merged 2 commits into from
Aug 8, 2023

Conversation

zacharis278
Copy link
Contributor

MST-2029

This useEffect hook would occasionally cause React to choke. By returning a value here we're telling react to callback that function on cleanup, except we're returning a Promise not a function so it blows up. There's no need to return anything here.

There may be another issue or change that caused this problem to surface but this fixed the error for me locally.

@zacharis278 zacharis278 force-pushed the zhancock/fix-navigation-error branch 2 times, most recently from 12233cd to a6f1dc4 Compare August 8, 2023 20:17
@zacharis278 zacharis278 force-pushed the zhancock/fix-navigation-error branch from a6f1dc4 to e6beffe Compare August 8, 2023 21:01
@codecov
Copy link

codecov bot commented Aug 8, 2023

Codecov Report

Patch coverage: 100.00% and project coverage change: -0.01% ⚠️

Comparison is base (dcd6847) 87.67% compared to head (d6b2bfe) 87.66%.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1157      +/-   ##
==========================================
- Coverage   87.67%   87.66%   -0.01%     
==========================================
  Files         264      264              
  Lines        4453     4452       -1     
  Branches     1110     1110              
==========================================
- Hits         3904     3903       -1     
  Misses        535      535              
  Partials       14       14              
Files Changed Coverage Δ
...seware/course/sequence/Unit/hooks/useExamAccess.js 100.00% <100.00%> (ø)

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

@zacharis278 zacharis278 merged commit b0c71e5 into master Aug 8, 2023
5 checks passed
@zacharis278 zacharis278 deleted the zhancock/fix-navigation-error branch August 8, 2023 21: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