Skip to content

Conversation

@vas3a
Copy link
Collaborator

@vas3a vas3a commented Aug 2, 2022

https://topcoder.atlassian.net/browse/PROD-2749
Lesson not progressing to next step

The deps array for an useEffect doesn't need to always be exhaustive. I should have added the ignore rule for this from the beginning.

Eg. routeParams triggers the effect, and when this is called, the rest of the values are taken from current context anyway, so we're fine, we're not using deprecated values. But it is imperative that only routeParams is the one to trigger the effect.

I'll merge the fix for now so it is deployed and the UI is not stuck, but we can discuss later anyway.

@vas3a vas3a self-assigned this Aug 2, 2022
@vas3a vas3a merged commit bd27088 into dev Aug 2, 2022
@brooketopcoder brooketopcoder deleted the PROD-2749_lesson-nav-fix branch August 8, 2022 17:52
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