Closed krutoo closed 1 month ago
The initialEntered
is false by default, so you only need to set the mountOnEnter
true for achieving isMounted
false on the initial render.
const [state, toggle] = useTransition({
+ mountOnEnter: true,
unmountOnExit: true,
});
@szhsin Thanks a lot
Hi, i use this library like this:
fisrt render takes state:
How should I use hook to make isMounted false by default?