forked from
oppi.li/claude-code
source dump of claude code
1// Store all instances of Ink (instance.js) to ensure that consecutive render() calls
2// use the same instance of Ink and don't create a new one
3//
4// This map has to be stored in a separate file, because render.js creates instances,
5// but instance.js should delete itself from the map on unmount
6
7import type Ink from './ink.js'
8
9const instances = new Map<NodeJS.WriteStream, Ink>()
10export default instances