Skip to content
This repository was archived by the owner on Oct 16, 2024. It is now read-only.
This repository was archived by the owner on Oct 16, 2024. It is now read-only.

Default configurations aren't applied to undefined set properties in a configuration object #173

@bennobuilder

Description

@bennobuilder

🐛 Bug report

🤖 Current Behavior

Default properties aren't applied to undefined set properties.

// Now the default property of 'background' 
// can't be applied to the configuration object because it is set.
MY_STATE.set('jeff', {background: undefined}); 
// internal: config.background; // Returns 'undefined'

🎯 Expected behavior

Default properties should also be applied to undefined set properties.

MY_STATE.set('jeff', {background: undefined}); 
// internal: config.background; // Returns 'defaultConfig'

💡 Suggested solution(s)

see benchmarks/typescript/defineConfig

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions