As part of T321527: Support conditional defaults for user properties, the Growth team is adding support for conditional options defaults into MediaWiki Core. Once that change is merged into core, default values of user properties might vary by user (in other words, foo-option might have a default value of 1 for User A, but a default value of 0 for User B).
ResourceLoader::getUserDefaults() serves to export default values for user options to the frontend (via the user.json pseudo-file from the mediawiki.base module). Because it is a ResourceLoader callback, it is trickier to fix (for most RL modules, current user is not available, as the modules are subject to sitewide caching). We will probably end up having to store defaults for conditional properties (ConditionalDefaultsLookup::getConditionallyDefaultOptions()) in one of the per-user modules, such as user.defaults. This change should be implemented as part of this task.