2.3.1
🌟 Help spread the word about Holy Loader by starring the repo or posting on Twitter about the release.
Highlights
- This release introduces 2 new methods to manually start & stop the progress bar (
startHolyLoader
&stopHolyLoader
) thanks to @lorikku 🙌
Here's an example use case:
'use client';
import { startHolyLoader, stopHolyLoader } from 'holy-loader';
try {
startHolyLoader();
await signOut();
} catch (error) {
stopHolyLoader();
// do something else
} finally {
router.push('/'); // Navigate to another route, which will automatically complete the loader
}
Full Changelog: 2.2.10...2.3.1