Skip to content

Fix duplicate file cause application error in collection view UI#7928

Merged
cwangsmv merged 4 commits intodevelopfrom
fix/duplicate-in-workspace-issue
Sep 9, 2024
Merged

Fix duplicate file cause application error in collection view UI#7928
cwangsmv merged 4 commits intodevelopfrom
fix/duplicate-in-workspace-issue

Conversation

@cwangsmv
Copy link
Contributor

@cwangsmv cwangsmv commented Sep 9, 2024

Issue:

Screen.Recording.2024-09-09.at.11.59.27.mp4

Cause
Race condition.
Current page loader function in router will trigger due to create action in database.
Meanwhile, new page loader function in router will also be triggered. So when new open is rendering, the loaderData will be overridden by old page loader function which cause this issue.

Change
Use old way of redirect function in duplicateWorkspaceAction

@cwangsmv cwangsmv marked this pull request as draft September 9, 2024 07:32
@cwangsmv cwangsmv marked this pull request as ready for review September 9, 2024 08:07
CurryYangxx
CurryYangxx previously approved these changes Sep 9, 2024
@cwangsmv cwangsmv enabled auto-merge (squash) September 9, 2024 08:10
@CurryYangxx
Copy link
Member

May be we need a smoke test for this duplicate entrance. @yaoweiprc

jackkav
jackkav previously approved these changes Sep 9, 2024
filfreire
filfreire previously approved these changes Sep 9, 2024
@cwangsmv cwangsmv dismissed stale reviews from filfreire, jackkav, and CurryYangxx via 2486c71 September 9, 2024 09:36
@cwangsmv cwangsmv merged commit 4d37a4e into develop Sep 9, 2024
@cwangsmv cwangsmv deleted the fix/duplicate-in-workspace-issue branch September 9, 2024 09:53
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.

4 participants