restaumatic/purescript-specular

WeakDynamic

Closed this issue · 0 comments

zyla commented

A primitive similar to Dynamic. The difference is, while Dynamic always has a value, WeakDynamic has a value always after some point, but for a short period of time after construction it may be without value.

This will make implementation of fixFRP possible.

A function weaken :: Dynamic ~> WeakDynamic will be provided.

All functions that currently take Dynamics (elDynAttr, dynText, dynamic_) should be changed to receive WeakDynamics where it makes sense.