Skip to content
This repository was archived by the owner on Dec 15, 2022. It is now read-only.

Commit 4693a13

Browse files
committed
Clear all global Relay state along with expectations
1 parent 9d7188f commit 4693a13

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/relay-network-layer-manager.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,10 @@ export function expectRelayQuery(operationPattern, response) {
4646

4747
export function clearRelayExpectations() {
4848
responsesByQuery.clear();
49+
relayEnvironmentPerURL.clear();
50+
tokenPerURL.clear();
51+
fetchPerURL.clear();
52+
responsesByQuery.clear();
4953
}
5054

5155
function createFetchQuery(url) {

0 commit comments

Comments
 (0)