-
Notifications
You must be signed in to change notification settings - Fork 33
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
Rollback or Cancel behaviour #51
Comments
you can have a look at the shadow of session as described in comment of this issue #22 |
@c0urg3tt3 works, is this how it should be done going forward? |
I am probably going to add a |
We use childSession when we have a dedicated edit view but as far as I can tell there are some situations where using a childSession isn't possible. For example, we have a customer profile page that allows a user to edit the name and other attributes in place without having to first click an edit button. If the user escapes from the input while editing, we need to rollback. I'm not sure how this would be done using a childSession. |
@jasonkriss this is partially why the current behavior for childSessions is to flush into the parent session immediately. In your profile case you could create a child session upon edit and simply flush when they click save. |
I have a cancel button in an edit view and I'd like to cancel all changes when that button is pressed.
Do I manipulate the session or the model to rollback the changes?
The text was updated successfully, but these errors were encountered: