For now, `AsyncDerived.__call__` will returns a value which may be stale already. https://github.com/promplate/pyth-on-line/blob/ec2523ffd43b4eeb9ca73a036f774a82b84dbed2/packages/hmr/reactivity/async_primitives.py#L126-L143 If you want to ensure a fresh one, you have to do this: ```py async def _(d: AsyncDerived): while d.dirty: result = await self._run() return result ``` The question is, Should we simplify this, by 1. provide an option in `AsyncDerived` to ensure this behavior in its `__call__`? 2. provide an keyword argument in `AsyncDerived.__call__` to ensure this behavior? And, what about `__sync_dirty_deps`? I personally tend to the first one.
Activity
linear commentedon Oct 15, 2025
PROM-75