Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit3b54c66

Browse files
authored
Merge pull request#107 from djsilcock/patch-1
Don't try to access window global during SSR
2 parents2ea12ee +b0e168e commit3b54c66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎packages/redux-dynamic-modules-saga/src/SagaExtension.ts‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ export function getSagaExtension<C>(
2020
letsagaMonitor=undefined;
2121

2222
//@ts-ignore
23-
if(process.env.NODE_ENV==="development"){
23+
if(process.env.NODE_ENV==="development"&&typeofwindow!=="undefined"){
2424
sagaMonitor=window["__SAGA_MONITOR_EXTENSION__"]||undefined;
2525
}
2626

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp