[PR #71] [MERGED] Fix get promise never resolving #62

Closed
opened 2026-05-23 08:35:40 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/appy-one/acebase-client/pull/71
Author: @appy-one
Created: 4/1/2026
Status: Merged
Merged: 4/14/2026
Merged by: @appy-one

Base: masterHead: fix/handling-server-error-without-cache


📝 Commits (1)

  • b442847 This fixes a situation where get never yields an error (or result):

📊 Changes

1 file changed (+5 additions, -3 deletions)

View changed files

📝 src/api-web.ts (+5 -3)

📄 Description

This fixes a situation where get never yields an error (or result):

  • A value does not exist in cache, and the (resolved) cache promise is handled first
  • The server value can't be loaded because of an error (unauthorized or server error) and the (rejected) server promise is handled second.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/appy-one/acebase-client/pull/71 **Author:** [@appy-one](https://github.com/appy-one) **Created:** 4/1/2026 **Status:** ✅ Merged **Merged:** 4/14/2026 **Merged by:** [@appy-one](https://github.com/appy-one) **Base:** `master` ← **Head:** `fix/handling-server-error-without-cache` --- ### 📝 Commits (1) - [`b442847`](https://github.com/appy-one/acebase-client/commit/b4428473ec3162803f17623ab205e00957fc3797) This fixes a situation where `get` never yields an error (or result): ### 📊 Changes **1 file changed** (+5 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `src/api-web.ts` (+5 -3) </details> ### 📄 Description This fixes a situation where `get` never yields an error (or result): * A value does not exist in cache, and the (resolved) cache promise is handled first * The server value can't be loaded because of an error (unauthorized or server error) and the (rejected) server promise is handled second. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-23 08:35:40 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase-client#62
No description provided.