Skip to content

The default value does not allow an empty string #2

@fedekau

Description

@fedekau

When using the DefaultableStorage an ampty value of the defaultValue option is not allowed

import SuperchargedStorage, {
  DefaultableStorage,
} from 'supercharged-storage';

SuperchargedStorage.use(DefaultableStorage);

const storage = SuperchargedStorage.build({
  defaultValue: '',
});

// throws "Please provide a valid defaultValue option"

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions