Nick Harris

Results 35 comments of Nick Harris

So i confirmed that if I use the same Request object it works. I added a middleware to store the request object into a ContextVar and if I use that...

Ok I think I found a solution here. See PR #848

For those looking for a workaround that doesn't use ContextVars. I basically just took the new receive function from #848 and created a CachedRequest that i use in my middleware...

Ok my previous workaround no longer works after v0.13.3. StreamResponse now listens a disconnect which breaks because of the cached receive function. After learning ASGI and starlette more I realize...

Awesome, thanks Tom! I'm willing to help wherever I can. If you think my approach in #944 isn't the way to go I am willing to take another stab at...

This is my work around right now. You basically have to replace everywhere that instantiates a Request with CachedRequest. This means any third party middleware or asgi apps you will...

@tomchristie I just wanted to check in on your schedule for this issue. I know you've been busy but thought I'd check in to see if you had time to...

@tomchristie have you gotten a chance to look at #944? i'm still chugging along with my CachedRequest workaround but i'd like to reduce this point of failure for future middleware...

@tomchristie I started a new job and am no longer working on Starlette projects anymore. I am happy to help out with anything needing to get this pushed across the...

Would something like this _just work_? Components are just functions after all? ``` jsx async function* Parent() { let i = 1; this.addEventListener("click", () => { i++; this.refresh(); }); for...