Defers legacy mutation of object till after a creation happens. (#3379)

* Defers legacy mutation of object till after a creation happens.

* Fixes display layout to defer actions until objects.save returns

* Revert back to localStorage... big oops!
This commit is contained in:
Shefali Joshi
2020-09-17 13:53:45 -07:00
committed by GitHub
parent 67749dd2bb
commit 08b2940eb6
5 changed files with 53 additions and 37 deletions

View File

@@ -32,6 +32,7 @@ describe("The Object API", () => {
"create",
"update"
]);
mockProvider.create.and.returnValue(Promise.resolve(true));
objectAPI.addProvider(TEST_NAMESPACE, mockProvider);
});
it("Calls 'create' on provider if object is new", () => {