Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1f8fbc9

Browse files
committed
Remove dependencies
1 parent b6e5b4d commit 1f8fbc9

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

packages/gatsby/src/redux/reducers/page-data-processors.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,16 @@ export function pageDataProcessorsReducer(
2424
processorsByPath.add(action.payload.moduleID)
2525
return state
2626
}
27+
28+
case `DELETE_COMPONENTS_DEPENDENCIES`: {
29+
const { paths } = action.payload
30+
31+
paths.forEach(path => {
32+
state.delete(path)
33+
})
34+
35+
return state
36+
}
2737
}
2838

2939
return state

packages/gatsby/src/redux/types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -235,7 +235,7 @@ export interface IGatsbyState {
235235
pageData: Map<Identifier, string>
236236
modules: Map<string, IDependencyModule>
237237
queryModuleDependencies: Map<string, Set<string>>
238-
pageDataProcessors: Map<string, Map<string, Array<string>>>
238+
pageDataProcessors: Map<string, Map<string, Set<string>>>
239239
}
240240

241241
export interface IDependencyModule {

0 commit comments

Comments
 (0)