-
Notifications
You must be signed in to change notification settings - Fork 223
Open
Description
Use jotai, why-did-you-render has always log diff
It's example:
const dataAtom = atom({ name: "aa" });
export default function Home() {
const [data, setData] = useAtom(dataAtom);
useEffect(() => {
setData({ name: "aa2" });
}, []);
return <Div>{data.name}</Div>
}
Home.whyDidYouRender = true;Metadata
Metadata
Assignees
Labels
No labels