We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f25f44 commit 20138e1Copy full SHA for 20138e1
src/server/index.js
@@ -1,6 +1,7 @@
1
/* eslint-disable react/no-danger, no-underscore-dangle */
2
import React from 'react'
3
import { LOADABLE } from '../constants'
4
+import { reset as resetTracker } from '../componentTracker'
5
import DeferredState from './DeferredState'
6
7
function isReactElement(element) {
@@ -172,6 +173,9 @@ export function getLoadableState(
172
173
fetchRoot = true,
174
tree = {},
175
) {
176
+ // Prevent duplicated components
177
+ resetTracker()
178
+
179
const queries = getQueriesFromTree({ rootElement, rootContext }, fetchRoot)
180
181
// no queries found, nothing to do
0 commit comments