Releases: Byloth/vuert
Releases · Byloth/vuert
v1.2.1
Patch release
Added the Vuert.js' module for Nuxt.js
To use it, simply install it as dependency in your Nuxt.js project...
npm install --save-dev @byloth/nuxt-vuert-module
... then add it in your nuxt.config.ts
file:
export default defineNuxtConfig({
/* [...] */
modules: [
/* [...] */
"@byloth/nuxt-vuert-module"
],
/* [...] */
})
You will be able to access the AlertHandler
component and the useVuert
composable without importing anything into your *.vue
file... Nuxt.js will imports that for you automatically.
Also, you will able to access the Vuert.js active instance by simply using the syntax:
const { $vuert } = useNuxtApp();
v1.2.0
Minor release
Now whenever you'll call the emit
method, it will return back the instance on the Context
attached to the emitted Alert
.
You can subscribe for onOpening
, onOpened
, onClosing
and onClose
events and programmatically call methods open
, reject
and resolve
on it.
You can also await
it just like a normal Promise
and it will return the alert result.