Open micchickenburger opened 11 months ago
you could implement a custom virtual dom and an input component yourself. hook into the keypress events and update/append to a buffer with the key pressed, and immediately overwrite the vdom before it can be GC'd, then overwrite the buffer when you're done with it.
From #43
In JavaScript, there is no control over garbage collection. There is some thought that one could overwrite a
TypedArray
with zeros or random values to overwrite a secret in memory. Before implementing this, however, I would like to verify that this is actually the case (not just that a newTypedArray
is created in memory with the new values and the old array is dereferenced and scheduled for deletion by the garbage collector, for instance.)