reactronic icon indicating copy to clipboard operation
reactronic copied to clipboard

Cache should be invalidated right inside a transaction if it changes a variable used by that function

Open ychetyrko opened this issue 6 years ago • 1 comments

If transaction changes some variable and calls cached function that uses that variable, then cached function should not return cached result (instead, it should be recomputed right inside the transaction).

ychetyrko avatar Jan 17 '20 15:01 ychetyrko

Alternative approach is to provide nocache(() => {...}) construct in order to access cached functions on pass-through basis

ychetyrko avatar Feb 01 '20 18:02 ychetyrko