bikeshaving / crank

The Just JavaScript Framework

Home Page:https://crank.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Don’t use yielded elements in async generator components when props are stale

brainkim opened this issue · comments

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?

This issue is closely related to #239.