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"
When using the
DefaultableStoragean ampty value of thedefaultValueoption is not allowed