Skip to content

Commit

Permalink
websocket: don't discard dirty queries ids before websocket is initia…
Browse files Browse the repository at this point in the history
…lized

user can have satured runtime caches and restart dev server which means they might
miss some invalidation messages and would need to manually refresh browser
  • Loading branch information
pieh committed Nov 17, 2020
1 parent fd18243 commit adb295f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/gatsby/src/utils/websocket-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -197,9 +197,9 @@ export class WebsocketManager {
type: `dirtyQueries`,
payload: { dirtyQueries },
})
}

store.dispatch(clearDirtyQueriesListToEmitViaWebsocket())
store.dispatch(clearDirtyQueriesListToEmitViaWebsocket())
}
}
}
}
Expand Down

0 comments on commit adb295f

Please sign in to comment.