bordoley / reactive-js

Fast modern reactive Javascript programming library
MIT License
11 stars 0 forks source link

Buffer is not referentially transparent #478

Closed bordoley closed 1 year ago

bordoley commented 1 year ago

https://github.com/bordoley/reactive-js/blob/34eb884aedd534e830e0777f40017235eec255d0/src/util/EventSource/__internal__/EventSource.create.ts#L63

because the buffer is a mutable data source we should use a delegating wrapper such that we maintain the equality identity of the buffer