sisyphus icon indicating copy to clipboard operation
sisyphus copied to clipboard

Add onBeforeRestoreAll and onRestoreAll

Open brendon opened this issue 6 years ago • 1 comments

onBeforeRestore and onRestore are now granular and provide the target form. They also don't trigger if there is no data to restore for that particular form.

onBeforeRestoreAll and onRestoreAll operate like onBeforeRestore and onRestore used to.

No tests so far.

Potential to close #138 with more work.

brendon avatar Jun 07 '18 08:06 brendon

I just wanted to float this concept before cleaning it up (documentation and tests). What do you think? I know it breaks the existing API but it's better to rename the methods to *All rather than call the new methods and callbacks onRestoreTarget IMO, but we could look at that as an alternative.

brendon avatar Jun 07 '18 08:06 brendon