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.

    Install

    npm i view-error-boundary

    DownloadsWeekly Downloads

    6

    Version

    0.1.0

    License

    MIT

    Unpacked Size

    5.84 kB

    Total Files

    11

    Last publish

    Collaborators

    • lucassatiro