Skip to content

Conversation

@lucas-barake
Copy link
Contributor

@lucas-barake lucas-barake commented Nov 20, 2025

Atom.fn and Atom.fnSync keep their arg state in an internal atom that inherited the registry default idle TTL. When the parent atom has idleTTL(0) we still keep that child atom alive, so remounting the function immediately reuses the previous arguments and re-executes instead of going back to the initial state. Tying the helper atoms (args and concurrent fibers) to idleTTL(0) makes them drop alongside the parent so a fresh mount starts from the initial value and only runs when explicitly triggered.

@tim-smart tim-smart merged commit e1c5e51 into tim-smart:main Nov 20, 2025
3 checks passed
@github-actions github-actions bot mentioned this pull request Nov 20, 2025
@lucas-barake lucas-barake deleted the fix-fn-idle-ttl branch November 20, 2025 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants