Repository navigation
3.0.0
Thanks to @iljadaderko @Pigotz @gonzachr @JonatanSalas @z4o4z for the contribution.
π Bugfix
- Avoid
useWorkerunnecessary re-render
π Features
autoTerminateoption docs
β‘ Breacking changes #36
- The parameters returned by the hook change:
Before
const [sortWorker, status, kill] = useWorker(sortDates);After
const [sortWorker, { status, kill }] = useWorker(sortDates);- The name of the option
dependencieschanges toremoteDependencies
Before
const [sortWorker] = useWorker(sortDates, { dependencies: ["www.google.com/script.js"] );After
const [sortWorker] = useWorker(sortDates, { remoteDependencies: ["www.google.com/script.js"] );These changes allow the addition of new features ( Roadmap 3.0.0 )