Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion src/datalayer/syncService.js
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ const unsubscribeFromDataLayerStoreWithRetry = async (
) => {
if (!USE_SIMULATOR) {
let success = false;
const retryCount = 0;
let retryCount = 0;

while (!success) {
success = await dataLayer.unsubscribeFromDataLayerStore(storeId);
Expand All @@ -38,6 +38,7 @@ const unsubscribeFromDataLayerStoreWithRetry = async (
`failed to unsubscribe from store ${storeId} after ${maxRetries} attempts`,
);
}
retryCount += 1; // Fix: Actually increment the retry counter
await new Promise((resolve) =>
setTimeout(() => resolve(), retryWaitMs),
);
Expand Down
Loading