You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Just tracking an idea I had last night. It’s possible in async generator components for stale props to be rendered, esp if the async generator component is awaiting something in the loop body. It would be nice if we could throw away all these renders until the next time props is read, to ensure we don’t render out of date children.
Should this work for updates + refreshes, or just updates?
The text was updated successfully, but these errors were encountered:
Tanking on a refactoring of async generator components, and making the
enqueuing behavior work based on the render loop.
1. Stop letting block promises reject.
2. Explicitly disallow fancy iterators which can be both sync/async.
3. Move the async generator components yielding logic OUTSIDE the
run()/step()/advance() loop.
4. Enqueue updates to async generator components based on the render loop. The
behavior of components will differ based on whether or not we are in the
render loop.
Tanking on a refactoring of async generator components, and making the
enqueuing behavior work based on the render loop.
1. Stop letting block promises reject.
2. Explicitly disallow fancy iterators which can be both sync/async.
3. Move the async generator components yielding logic OUTSIDE the
run()/step()/advance() loop.
4. Enqueue updates to async generator components based on the render loop. The
behavior of components will differ based on whether or not we are in the
render loop.
Just tracking an idea I had last night. It’s possible in async generator components for stale props to be rendered, esp if the async generator component is awaiting something in the loop body. It would be nice if we could throw away all these renders until the next time props is read, to ensure we don’t render out of date children.
Should this work for updates + refreshes, or just updates?
The text was updated successfully, but these errors were encountered: