- Notifications
You must be signed in to change notification settings - Fork85
Open
Description
In my component, I use an useEffect to do some initialization with side effect.
consttitle=useObservable(()=>titles$);useEffect(()=>{// do initialization with title},[]);
title$ is aBehaviorSubject, so I would like theuseEffect block can get the current title value directly, so that I don't need to wait another cycle for the initialization.
Metadata
Metadata
Assignees
Labels
No labels