view-error-boundary

0.1.0 • Public • Published

error-boundaries

Error Handling

Install simple package to serve the index.html like http-server

Where the ideas came from:

Usage

Vue.use(ErrorBoundary, {
  name: 'ErrorBoundary',
  middlewares: [
    consoleMd,
    example
  ]
})

It will run each middleware with these conditions:

  • If you return a component or false, the error won't propagate and no other middlware will run.
  • If you just run some logic or return true the error will propagate and will continue to run the remain middlewares.

Package Sidebar

Install

npm i view-error-boundary

Weekly Downloads

1

Version

0.1.0

License

MIT

Unpacked Size

5.84 kB

Total Files

11

Last publish

Collaborators

  • lucassatiro