Package developers register a function called with the ui at the start of a
ui solve, before parameter loaders run. Use it to rehydrate transient C-side
state from serializable ui slots (so a ui saved to disk and reloaded in a
fresh session solves correctly). The hook must be cheap and a no-op for
models it does not own.
Usage
rxRegisterUiPrep(name, fn)
rxRemoveUiPrep(name)
Arguments
- name
Unique hook name; re-registering the same name replaces it.
- fn
Function of one argument (the rxUi being solved). Return value is
ignored; errors are downgraded to a warning so a buggy hook cannot break
unrelated solves.
Value
Invisibly, the hook name (register) or NULL (remove).