1.3.2 • Published 3 years ago
@harlem/plugin-reset v1.3.2
Harlem Reset Plugin
This is the official Harlem plugin for resetting stores to their initial state.
Getting started
Before installing the reset plugin make sure you have installed @harlem/core
.
- Install
@harlem/plugin-reset
:
npm install @harlem/plugin-reset
Or if you're using Yarn:
yarn add @harlem/plugin-reset
- Create an instance of the plugin and register it with Harlem:
import App from './app.vue';
import harlem from '@harlem/core';
import createResetPlugin from '@harlem/plugin-reset';
createApp(App)
.use(harlem, {
plugins: [
createResetPlugin()
]
})
.mount('#app');
- Call the reset method with the name of the store you wish to reset:
import {
reset
} from '@harlem/plugin-reset';
export default function() {
reset('my-store');
}
1.3.2
3 years ago
1.3.1
3 years ago
1.3.0
3 years ago
1.2.5
3 years ago
1.2.4
3 years ago
1.2.0
3 years ago
1.2.3
3 years ago
1.2.2
3 years ago
1.1.3
3 years ago
1.2.1
3 years ago
1.1.1
3 years ago
1.1.0
3 years ago
1.0.19
3 years ago
1.0.18
3 years ago
1.0.17
3 years ago
1.0.16
4 years ago
1.0.15
4 years ago
1.0.14
4 years ago
1.0.13
4 years ago
1.0.12
4 years ago