Skip to content

Commit

Permalink
Synchronously update persistedRequests
Browse files Browse the repository at this point in the history
  • Loading branch information
roryabraham committed Apr 12, 2024
1 parent dcc089f commit cd00c71
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libs/actions/PersistedRequests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ function clear() {
}

function save(requestToPersist: Request) {
// Save the updated set of requests
Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, [...persistedRequests, requestToPersist]);
persistedRequests.push(requestToPersist);
Onyx.set(ONYXKEYS.PERSISTED_REQUESTS, persistedRequests);
}

function remove(requestToRemove: Request) {
Expand Down

0 comments on commit cd00c71

Please sign in to comment.