Skip to content

Commit 713a103

Browse files
committed
fix(hotfix): make ssr work
1 parent 6d30e78 commit 713a103

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/useApi.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -85,11 +85,11 @@ export const useApi = (
8585
if (!cacheKeys.has(cacheKey)) {
8686
cacheKeys.add(cacheKey)
8787
debug && console.log('[ReactUseApi][Collect]', cacheKey)
88-
ssrConfigs.push({
89-
config,
90-
cacheKey,
91-
})
9288
}
89+
ssrConfigs.push({
90+
config,
91+
cacheKey,
92+
})
9393
}
9494
}
9595

0 commit comments

Comments
 (0)