File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
1
import { render } from "@testing-library/react"
2
- import React , { useState } from "react"
2
+ import React , { StrictMode , useState } from "react"
3
3
import { defer , Observable , of } from "rxjs"
4
- import { bind , Subscribe } from "./"
4
+ import { bind , Subscribe as OriginalSubscribe } from "./"
5
+
6
+ const Subscribe = ( props : any ) => {
7
+ return (
8
+ < StrictMode >
9
+ < OriginalSubscribe { ...props } />
10
+ </ StrictMode >
11
+ )
12
+ }
5
13
6
14
describe ( "Subscribe" , ( ) => {
7
15
describe ( "Subscribe with source$" , ( ) => {
Original file line number Diff line number Diff line change @@ -77,6 +77,7 @@ export const Subscribe: React.FC<{
77
77
useEffect ( ( ) => {
78
78
return ( ) => {
79
79
subscriptionRef . current ! . unsubscribe ( )
80
+ subscriptionRef . current = undefined
80
81
}
81
82
} , [ ] )
82
83
You can’t perform that action at this time.
0 commit comments