v2.4.1
- 🎸 Add
canStart
to hook return to be able to start at mount but need to wait for everything ok.
// Can start at mount 🎉
// you need to wait until everything is registered 😁
React.useEffect(() => {
if (canStart) {
// 👈 test if you can start otherwise nothing will happen
start()
}
}, [canStart]) // 👈 don't miss it!