Yusuke Wada
Yusuke Wada
@sor4chi > By the way, can we observe a response cancellation event? I don't know :) So, I've made the Node.js example. Which runtime do you try it?
This works well on Node.js. But it does not work on Bun well because maybe it has this issue: https://github.com/oven-sh/bun/issues/6758 So, we have to test it on Node.js (or Deno)....
@sor4chi > Can't we get abort from something other than stream as @ HeyITGuyFixIt shows in his code...? I don't know. Please investigate it.
After investigating, it appears that we can handle cancellation events, such as closing a browser tab, using `ReadableStream` because it has a `cancel` method. However, `WritableStream`, which is used in...
@sor4chi Cool! I don't know whether to merge or not, but can you make a PR? We can discuss it there.
Hi @usualoma, This is really interesting! But, I can't imagine use cases for me right now though there are many cases. I'll give it some thought.
@usualoma I think this is the most simplest use case, isn't it? ```tsx app.get('/', (c) => { const node = jsxNode( Hello console.log('Hello'); ).on('renderToString.script', ({ setContent, node }) => {...
@usualoma, I agree. I think this seems to be a "low-level" API for users, so we should explore more applicational use cases for it.
Hi @kahosan, This seems to be a good suggestion. However, inferring types perfectly is difficult for me, or it might be impossible. For example, [this issue](https://www.typescriptlang.org/play?#code/JYWwDg9gTgLgBAbzgQwM6oKawCoE8wZwC+cAZlBCHAOQBuwMGqM1AUKwCYYDGANslEKkArgDtuMYBFFwAjsKy4APNjgYAHo1EdUcAEo9oHJcyjBRAcwA0cU+YsA+GwGk1mjNt0BrDLgik4VQBeOB8-AOwHAAowgC44ZwBKeOwAbWcAXXYYfEJgxFY4OGFMKABJDni7S0K4HIJ46mReXmo4AB8aSGY2InZuaWZi0oq4EPlFFWjqEqwK6kTWAHoloqKAPQB+VgHRIfrCcYUoZUio6gOFuBW4JSD72wALCGFeDjgAI0ImlrbO6m6LGWqzWW3YaFKMDwBBMMDMlmis3KHEWEKwUNySh+rQ6XQgPWiB0S11WWAoUAAhEA) I'll continue to investigate...
> This seems to be a problem with TypeScript, do we have a way to infer the type of key? Hmm. I'll keep to investigating it, but it may be...