Skip to content

Commit

Permalink
fix: looping shared-date init
Browse files Browse the repository at this point in the history
  • Loading branch information
Akryum committed Sep 8, 2021
1 parent fcac17d commit 3b961d6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/shared-utils/src/shared-data.ts
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,7 @@ export function initSharedData (params: SharedDataParams) {
})

initRetryCount = 0
clearInterval(initRetryInterval)
initRetryInterval = setInterval(() => {
if (process.env.NODE_ENV !== 'production') console.log('[shared data] Master init retrying...')
bridge.send('shared-data:master-init-waiting')
Expand Down

0 comments on commit 3b961d6

Please sign in to comment.