Does useObservable support dependent-variables? #4
-
const SomeComponent = ({uid}) => {
const [state] = useObservable(getStream$(uid))
}
const OuterComponent = () => {
const [uid, setUid] = useState(1)
return <SomeComponent uid={uid} />
} In the above example, even uid is changed through |
Beta Was this translation helpful? Give feedback.
Answered by
NetanelBasal
Apr 23, 2022
Replies: 2 comments
-
We can add inputs. Do you want to create PR? |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
w121211
-
I've added this in v1.1.0 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
We can add inputs. Do you want to create PR?