-
-
Notifications
You must be signed in to change notification settings - Fork 214
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
✨ subscription shape #264
base: main
Are you sure you want to change the base?
✨ subscription shape #264
Conversation
09f8daf
to
0c3b207
Compare
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
==========================================
- Coverage 100% 98.37% -1.63%
==========================================
Files 12 12
Lines 541 555 +14
Branches 109 116 +7
==========================================
+ Hits 541 546 +5
- Misses 0 5 +5
- Partials 0 4 +4
Continue to review full report at Codecov.
|
Codecov Report
@@ Coverage Diff @@
## master #264 +/- ##
=====================================
Coverage 100% 100%
=====================================
Files 12 12
Lines 558 558
Branches 119 119
=====================================
Hits 558 558 Continue to review full report at Codecov.
|
Add a test showing that this works? |
a56413e
to
1b0cf60
Compare
hi @erikras , codecov backs to 100% after adding some tests, plz take another look, thx. |
ping @erikras |
@erikras What can this be merged? I think that its valuable feature, and I could make use of it. |
If I'm understanding the desire correctly, it's that you want to pass something like: {
values: {
firstName: true,
lastName: true
}
} ...and only be notified when the values of those two fields change? Sort of like a MongoDB projection. I've written a test that actually goes all the way through |
Hi, @erikras.
means "I" only care about So, the failing test should be
which should be passed the working part is
even the phone field changes, this subscriber not care about it, so no notification comes! I'm not sure whether we should do form values projection. because it is a performance boost in my opinion. Any suggestions? |
The way to do it with recent React, is to create a component and repeat |
This PR supports object subscription for
values
andvalue
.For this issue #261