copyAndMutateByHookKey

Add or replace the entry for hookKey, preserving its existing CachedValue.deps when one is already present (and using NoDeps otherwise).


fun copyAndMutateByHookKey(hookKey: HookKey, newValue: Any?, deps: Array<*>): KStateContainer

Add or replace the entry for hookKey; deps overwrites any previously stored deps.