fix
This commit is contained in:
@@ -171,8 +171,8 @@ class SocketProvider extends Component {
|
||||
|
||||
return (
|
||||
<SocketContext.Provider value={{socket:this.socket,socketB:this.socketB}}>
|
||||
{/* Always render children but control visibility */}
|
||||
<div style={{ display: this.state.connected ? 'block' : 'none' }}>
|
||||
{/* Always render children but control visibility style={{ display: this.state.connected ? 'block' : 'none' }}*/}
|
||||
<div>
|
||||
{this.props.children}
|
||||
</div>
|
||||
|
||||
@@ -185,8 +185,8 @@ class SocketProvider extends Component {
|
||||
/>
|
||||
)}
|
||||
|
||||
{/* Show default fallback when not connected and no prerendered content */}
|
||||
{!this.state.connected && !showPrerenderFallback && this.props.fallback}
|
||||
{/* Show default fallback when not connected and no prerendered content {!this.state.connected && !showPrerenderFallback && this.props.fallback} */}
|
||||
|
||||
</SocketContext.Provider>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user