Open hauleth opened 5 months ago
I guess using a random key on each compile would avoid garbage collection of persistent term at the cost of storing both the old term and new one (until next time the app is restarted)?
Pretty much. It would make cleanup of old data much harder.
Currently hot code reloads will not affect
defonce
defined values. So the question is how it should be handled. I see few potential approaches there:@on_load
hook to cleanuppersistent_term
from any previously set valueEach of these approaches have pros and cons, but I am not sure what would be the proper way to handle it.