ice/packages/plugin-stream-error
木豆 942cb53499
Fix/head stream error types (#7000)
* chore: change pkg version

* fix: add head stream error types exports

* chore: plugin-stream-error changelog

* fix: plugin-stream-error use typesVersions
2024-10-09 15:01:04 +08:00
..
src chore: lint (#6969) 2024-08-15 10:58:24 +08:00
CHANGELOG.md Fix/head stream error types (#7000) 2024-10-09 15:01:04 +08:00
README.md feat: new plugin deal with stream error (#6530) 2023-09-21 10:56:01 +08:00
package.json Fix/head stream error types (#7000) 2024-10-09 15:01:04 +08:00
tsconfig.json feat: new plugin deal with stream error (#6530) 2023-09-21 10:56:01 +08:00

README.md

@ice/plugin-stream-error

A plugin for re-render app when stream error.

Usage

import { defineConfig } from '@ice/app';
import streamError from '@ice/plugin-stream-error';

export default defineConfig(() => ({
  plugins: [
    streamError(),
  ],
}));

Causion: This plugin only works when stream content ends with javascripts which triggered an custom event of stream_end