Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
this.render = () => {
clearSubscription()
const { result, stream$ } = SubX.runAndMonitor(props.store, render)
this.__subscription__ = stream$.subscribe(event => {
if (event.type === 'STALE' && R.equals(R.path(event.path, props.store), event.cache)) {
return
}
clearSubscription()
this.forceUpdate()
})
return result
}
if (this.componentWillUnmount) {