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(library): load collection child route properly TASK-1216 #5220

Merged
merged 2 commits into from
Nov 4, 2024

Conversation

magicznyleszek
Copy link
Member

@magicznyleszek magicznyleszek commented Nov 4, 2024

Description

Fix collection child not loading (UI displays infinite spinner) when trying to navigate into the collection child consecutive times.

Notes

For cached asset PermProtectedRoute was skipping the Reflux action call, and using the callback function directly. Unfortunately AssetRoute is expecting the Reflux action to happen (regardless if response comes from cache). This is sign of a bigger issue in our codebase - #4835 brought asset cache that is causing bugs, but the fact that we have a mess in the ways of loading the asset is the real culprit.

Testing

Given the fact that PermProtectedRoute is being used for many (27!) different routes, so it would be best if tester would visit each of them, just to verify they still load properly :)

Besides that, please follow reproduction steps from Notion task description.

Related issues

This is caused by the dreaded #4835

Copy link

@magicznyleszek magicznyleszek marked this pull request as ready for review November 4, 2024 08:38
Copy link
Contributor

@Akuukis Akuukis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

code LGTM, not tested. Nice use of JSDocs on the prop.

According to the new PR workflow, few comments about the title:

  • "fix(Library): Fix collection ..." -- don't repeat yourself & lower case title
  • "fix(Llibrary): ..." -- use lower case for groups/features/routes.
  • "fix(Library): Fix collection child route not loading properly load collection child route properly TASK-1216" -- use imperative mood & fit in the 50ish chars

@magicznyleszek magicznyleszek changed the title fix(Library): Fix collection child route not loading properly TASK-1216 fix(library): load collection child route properly TASK-1216 Nov 4, 2024
@magicznyleszek magicznyleszek merged commit 98b9a95 into main Nov 4, 2024
7 checks passed
@magicznyleszek magicznyleszek deleted the task-1216-collection-child-loading-bugfix branch November 4, 2024 16:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants