|
|
|
|
|
by alloyed
4250 days ago
|
|
What about the old let-over-lambda? do
var state = init
fn renderP()
...
end
end
Depending on what you wanted the state for, I think it satisfies most of the properties you'd be missing with a persistent, not-in loop state. It wipes itself on refresh, it has a distinct owner, it can be individually refreshed just by re-evaluating everything inside the do-block, etc. |
|