Merged
Conversation
Contributor
jlewin
commented
May 24, 2025
- Fixes Challenge get-by-id endpoint results in indefinite loading indicator #2642
Contributor
Author
|
This is my take on a fix and completely understandable if it varies from a more preferred approach. If nothing else, hopefully it provides a glanceable take on the problem and helps bring about a fix.
This worked but seemed less ideal... const challenges = {};
challenges[projectId.toString()] = {
parent: projectId
};
const mockChallengeResults = {
entities: {
challenges: challenges,
},
result: projectId,
};
fetchParentProject(dispatch, mockChallengeResults);versus dispatch(fetchProject(projectId)); |
Contributor
|
Awesome, thank you so much for diving into this bug and putting together a PR! I'll review this after the weekend but just wanted to say thanks for contributing. |
jake-low
approved these changes
May 27, 2025
Contributor
jake-low
left a comment
There was a problem hiding this comment.
LGTM! This logic for loading tasks was tricky; thanks for figuring out the bug. In the future it'd be good for us to simplify this logic so it's less error prone.
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.