This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@harlem/plugin-reset
TypeScript icon, indicating that this package has built-in type declarations

1.3.2 • Public • Published

Harlem

Harlem Reset Plugin

npm

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.

  1. Install @harlem/plugin-reset:
npm install @harlem/plugin-reset

Or if you're using Yarn:

yarn add @harlem/plugin-reset
  1. 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');
  1. 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');
}

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Published

Version History

  • Version
    Downloads (Last 7 Days)
    • Published

Package Sidebar

Install

npm i @harlem/plugin-reset

Homepage

harlemjs.com

Weekly Downloads

42

Version

1.3.2

License

MIT

Unpacked Size

41.9 kB

Total Files

26

Last publish

Collaborators

  • andrewcourtice