-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove default value on empty storage item #10
Conversation
Yes that's what I have imagined. |
.filter((req) => req.key === key) | ||
.map((req) => req.value) | ||
.startWith(initialValue) | ||
|
||
if (initialValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe we should check for initialValue!==null
explicitly so allow falsy values like ""
to be stored.
added the type check |
Thank you |
no problem, will merge after the tests pass should this be a major version bump or just minor? |
I think it should be a major again since somebody could rely on the empty item being emitted. |
yeah, I am thinking the same thing |
remove default value on empty storage item
@laszlokorte this PR should do the trick, wanna review?