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

fixes #10301 race condition in link generation #10304

Closed
wants to merge 1 commit into from

Conversation

fkowal
Copy link
Contributor

@fkowal fkowal commented Oct 26, 2024

Problem

Describe the problem this PR solves
fixes an issue (race condition) happening during reference link generation
bug introduced in 5.2.3 -> 5.3.0
10a1c76

The issue is somewhat described in
#10301

Closes #10301

Solution

path is not set when async record comes in and link prop is a string

How To Test

I hope it's clear that the useEffect should set this

@fzaninotto
Copy link
Member

Thanks for your PR. I have created another one with a proper test to demonstrate the fix.

@fzaninotto fzaninotto closed this Oct 28, 2024
quentin-decre pushed a commit to quentin-decre/react-admin that referenced this pull request Nov 13, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants