jacob-ebey / turbo-stream

A streaming data transport format that aims to support built-in features such as Promises, Dates, RegExps, Maps, Sets and more.
https://turbo-stream.pages.dev/
MIT License
196 stars 6 forks source link

fix: handle promises resolving the same value better #29

Closed linkvt closed 5 months ago

linkvt commented 5 months ago

Hi,

this is a sample solution for #28 that causes the values of resolved promises with values, that have already been sent to be sent again.

Happy to adjust if this for a better solution given a hint 😀

Best, Vincent

jacob-ebey commented 5 months ago

Superseded by https://github.com/jacob-ebey/turbo-stream/pull/32