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: update edit #951

Merged
merged 3 commits into from
Oct 7, 2024
Merged

fix: update edit #951

merged 3 commits into from
Oct 7, 2024

Conversation

pyphilia
Copy link
Contributor

@pyphilia pyphilia commented Oct 4, 2024

  • Remove onMutate from useEditItem since single items are not fed anymore.
  • Invalidate parent/accessible items given return value's path.

We cannot perform "positive mutations" (onMutate) anymore, but I think it would be a better practice for us to show a loader/skeleton and prevent actions instead of showing updated data in the interfaces.

This does not solve edits happening in bookmarks, published being not updated (probably already buggy). Probably we don't want to edit items in such lists.

@pyphilia pyphilia self-assigned this Oct 4, 2024
@pyphilia pyphilia marked this pull request as ready for review October 4, 2024 11:19
Copy link

sonarcloud bot commented Oct 4, 2024

@pyphilia pyphilia added this pull request to the merge queue Oct 7, 2024
Merged via the queue into main with commit 16126c0 Oct 7, 2024
3 checks passed
@pyphilia pyphilia deleted the update-edit branch October 7, 2024 09:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants