-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
feat(): includeDefaultValues
arg
#7719
Conversation
Shachar the PR descriptions do not match up the quality and quantity of work you are doing. I did not ready the code yet, i would like the default behaviour was to not include default values all the time, because that creates enormous object dumps that are often not useful.
In general i prefer a single argument in the form of object compared to many arguments, with modern js is easier to handle. |
Code Coverage Summary
|
@asturur I think |
You mean |
Yes but when we have es6/TS we can think of change this shape. |
For me you can move forward. |
This reverts commit b168493.
Code Coverage Summary
|
includeDefaultValues is false by default
@asturur what type of object is this?
I am trying to figure out if to pass down the serialization args to it as well |
Finally all tests are passing. It was horrible... |
Code Coverage Summary
|
Code Coverage Summary
|
Code Coverage Summary
|
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Will die out if/once removeDefaultValues is gone |
Support accepting
includeDefaultValues
as an argument totoObject
methods instead of fussing withobject.includeDefaultValues
I have been wanting this for a long time
I think we should drop
includeDefaultValues
as a prop on the object/canvas levelAnd I think
excludeFromExport
can go away as well if we accept a filter function