Inject rolled back MongoDB transaction in Meteor / React

In my app , I have a table loaded from MongoDB and allowing the user to do inline editing.

Currently I just subscribed to the database and pushed the changes right there. This eliminates any undo operation, but makes state changes incredibly easy.

I could keep the last 3 operations on the stack and just apply the opposite when the cancel button is clicked, but I was wondering if there was a correct way to do this in Mongo / Meteor?

+3


source to share


1 answer


You can find one of these solutions:

https://atmospherejs.com/babrahams/transactions



https://atmospherejs.com/adain/meteor-command-pattern

+1


source







All Articles