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

[Doc] Improve Example REST Implementation when calling create with partial data #9276

Merged
merged 1 commit into from
Sep 14, 2023

Conversation

slax57
Copy link
Contributor

@slax57 slax57 commented Sep 14, 2023

The previous example implementation could cause issues if you call create with only partial data (say, only the mandatory fields), and expect the API to return the full record (including optional fields).
This could cause the react-query cache to be filled with incomplete data, wich could cause errors when opening the record's Show view after creation.

@slax57 slax57 added the RFR Ready For Review label Sep 14, 2023
@djhi djhi added this to the 4.14.1 milestone Sep 14, 2023
@djhi djhi merged commit 7eaef5e into master Sep 14, 2023
@djhi djhi deleted the fix-doc-create-partial-data branch September 14, 2023 12:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
RFR Ready For Review
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants