You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The following configuration does not fire the effect function when listening to the target atom.
const_b=atom(0);constb=withAtomEffect(_b,(get)=>{console.log('effect pre withAtomEffect b',get(_b));});b.debugLabel='b';functionComponent({ atom }){useHydration(atom)const[value,setValue]=useAtom(atom)return(<><div>{value}</div><buttononClick={()=>setValue(v=>v+1)}>+</button></>)}<Componentatom={b}/>
The text was updated successfully, but these errors were encountered:
Referenced
pmndrs/jotai#2823 (reply in thread)
Reproduction
https://stackblitz.com/edit/react-ts-euct7mig?file=index.tsx
The following configuration does not fire the effect function when listening to the target atom.
The text was updated successfully, but these errors were encountered: