Skip to content

Commit

Permalink
Fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
steida committed Apr 30, 2024
1 parent 5e0587c commit 2b0b8bf
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .changeset/nine-bats-serve.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
"@evolu/common": patch
---

Fix bug

It was a silly typo; sorry about that. Ironically, tests didn't catch it because that was the one test I didn't port after refactoring. My bad. We will add more tests in the future.
5 changes: 4 additions & 1 deletion packages/evolu-common/src/Evolu.ts
Original file line number Diff line number Diff line change
Expand Up @@ -703,7 +703,10 @@ const createEvolu = (
* unwrap it without waiting a microtask."
* https://github.com/acdlite/rfcs/blob/first-class-promises/text/0000-first-class-support-for-promises.md
*/
Object.assign(loadingPromise, { status: "fulfilled", value: result });
Object.assign(loadingPromise.promise, {
status: "fulfilled",
value: result,
});
if (loadingPromise.releaseOnResolve) {
loadingPromises.delete(query);
}
Expand Down

0 comments on commit 2b0b8bf

Please sign in to comment.