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(core): changes in props.id not reflected immediately in useResourceParams return type #6260

Merged
merged 3 commits into from
Aug 16, 2024

Conversation

aliemir
Copy link
Member

@aliemir aliemir commented Aug 15, 2024

PR Checklist

Please check if your PR fulfills the following requirements:

Bugs / Features

Changes

useResourceParams hook was not reflecting the changes in the id prop immediately. This was due to the id state being set in the useEffect hook. This PR fixes the issue by setting the id state properly during render rather than after the render is complete.

Fixes #6259

@aliemir aliemir added this to the September Release milestone Aug 15, 2024
@aliemir aliemir requested a review from a team as a code owner August 15, 2024 12:55
Copy link

changeset-bot bot commented Aug 15, 2024

🦋 Changeset detected

Latest commit: 36f5dea

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 2 packages
Name Type
@refinedev/supabase Patch
@refinedev/core Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@aliemir aliemir changed the base branch from master to releases/september August 15, 2024 12:55
Copy link

cypress bot commented Aug 15, 2024



Test summary

383 0 37 0


Run details

Project refine
Status Passed
Commit 8881491 ℹ️
Started Aug 15, 2024 1:05 PM
Ended Aug 15, 2024 1:22 PM
Duration 17:27 💡
OS Linux Ubuntu -
Browser Electron 118

View run in Cypress Cloud ➡️


This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. You can manage this integration in this project's settings in the Cypress Cloud

@aliemir aliemir force-pushed the releases/september branch 2 times, most recently from ce864cd to 6963e59 Compare August 16, 2024 07:27
@aliemir aliemir merged commit 05b944a into releases/september Aug 16, 2024
91 checks passed
@aliemir aliemir deleted the fix/core-use-resource-params-set-id-delay branch August 16, 2024 07:29
@aliemir aliemir mentioned this pull request Aug 16, 2024
emrecancorapci pushed a commit to emrecancorapci/refine that referenced this pull request Sep 4, 2024
emrecancorapci pushed a commit to emrecancorapci/refine that referenced this pull request Sep 4, 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
Development

Successfully merging this pull request may close these issues.

[BUG] queryOptions.enabled causes undefined request to be sent in useForm
2 participants