Skip to content

Commit

Permalink
fix auth refresh silent failure for react native (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
erquhart authored Jan 6, 2025
1 parent 882f665 commit f988bf9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@

/dist
/distreact
/distnextjs
/publish-example

# dependencies
Expand Down
1 change: 1 addition & 0 deletions src/react/client.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ async function enqueueCallbackForMutex(
setMutexValue(key, {
currentlyRunning: callback().finally(() => {
const nextCb = getMutexValue(key).waiting.shift();
getMutexValue(key).currentlyRunning = null;
setMutexValue(key, {
...getMutexValue(key),
currentlyRunning:
Expand Down

0 comments on commit f988bf9

Please sign in to comment.