Add coexistence checks to all enqueue methods to prevent loading both React and Grid.js assets simultaneously. Changes: - ReactAdmin.php: Only enqueue React assets when ?react=1 - Init.php: Skip Grid.js when React active on admin pages - Form.php, Coupon.php, Access.php: Restore classic assets when ?react=0 - Customer.php, Product.php, License.php: Add coexistence checks Now the toggle between Classic and React versions works correctly. Co-authored-by: Claude Opus 4.7 <noreply@anthropic.com>
32 lines
566 B
Markdown
32 lines
566 B
Markdown
# teex
|
|
|
|
Turn a readable stream into multiple readable [streamx streams](https://github.com/mafintosh/streamx).
|
|
|
|
```
|
|
npm install teex
|
|
```
|
|
|
|
## Usage
|
|
|
|
``` js
|
|
const tee = require('teex')
|
|
|
|
// a, b are readable streams that are "clones"
|
|
// of someReadableStream. both streams need to
|
|
// be flowing, for someReadableStream to flow
|
|
|
|
const [a, b] = tee(someReadableStream)
|
|
```
|
|
|
|
## API
|
|
|
|
#### `const streams = tee(s, [howMany])`
|
|
|
|
Split a readable stream into multiple streams.
|
|
The `howMany` argument indicates how many streams
|
|
to split into and defaults to 2.
|
|
|
|
## License
|
|
|
|
MIT
|