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

Commitd784c57

Browse files
committed
fix use effects
1 parent8c72738 commitd784c57

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

‎web-app/src/App.tsx

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,16 +46,18 @@ const App = () => {
4646
return()=>{
4747
window.removeEventListener(listener,handleEvent)
4848
}
49-
})
49+
},[])
5050

5151
// trigger progress when webview loaded
5252
React.useEffect(()=>{
5353
send('WEBVIEW_LOADED')
54-
})
54+
},[])
5555

5656
constvalue={
5757
state,
58-
}
58+
}
59+
60+
console.log(client)
5961

6062
// TODO: refactor cond to user <Router><Route> and accept first route as if/else if
6163
return(

‎web-app/src/Routes.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ const Routes = ({ state }: Props) => {
3737
return()=>{
3838
clearInterval(dimensionsInterval)
3939
}
40-
})
40+
},[])
4141

4242
return(
4343
<divstyle={{ ...styles.page, ...dimensions}}>

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp