Skip to content

Add support for optimistic and undoable mutationMode in useCreate#10513

Closed
djhi wants to merge 5 commits intonextfrom
create-mutation-mode
Closed

Add support for optimistic and undoable mutationMode in useCreate#10513
djhi wants to merge 5 commits intonextfrom
create-mutation-mode

Conversation

@djhi
Copy link
Copy Markdown
Contributor

@djhi djhi commented Feb 13, 2025

Problem

We currently don't support optimistic and undoable mutationMode in useCreate, which prevent us from supporting offline first applications.

Solution

Given that the new record identifier is generated client side, we can support optimistic and undoable mutationMode.

How To Test

Additional Checks

  • The PR targets master for a bugfix, or next for a feature
  • The PR includes unit tests (if not possible, describe why)
  • The PR includes one or several stories (if not possible, describe why)
  • The documentation is up to date

Also, please make sure to read the contributing guidelines.

@djhi djhi added the WIP Work In Progress label Feb 13, 2025
const [resourcesAccesses, setResourcesAccesses] = React.useState({
'books.list': true,
'books.create': false,
'books.delete': false,
Copy link
Copy Markdown
Contributor Author

@djhi djhi Feb 14, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is unrelated to the PR but removes an error log from the tests output

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

WIP Work In Progress

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant