Skip to content
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: remove state slice when set as undefined #2163

Merged
merged 7 commits into from
Jul 13, 2023
Merged

feat: remove state slice when set as undefined #2163

merged 7 commits into from
Jul 13, 2023

Conversation

JBBianchi
Copy link
Contributor

Handles setting a slice state to undefined as removing the said slice.

Related to #1790

@netlify
Copy link

netlify bot commented Jul 12, 2023

Deploy Preview for jsonforms-examples ready!

Name Link
🔨 Latest commit 041db92
🔍 Latest deploy log https://app.netlify.com/sites/jsonforms-examples/deploys/64b00e5fb213410008cbc85b
😎 Deploy Preview https://deploy-preview-2163--jsonforms-examples.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution ❤️

Please add test cases for the new behavior and make sure that the builds are green.

@JBBianchi
Copy link
Contributor Author

Sorry, I did hammer a bit the CI, I don't have the environment installed locally so I could test before committing.

I hope it's good enough.

@coveralls
Copy link

Coverage Status

coverage: 84.254%. remained the same when pulling 041db92 on JBBianchi:delete-on-set-undefined into 9acbbab on eclipsesource:master.

Copy link
Member

@sdirix sdirix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the contribution :)

@sdirix sdirix merged commit d6f1fda into eclipsesource:master Jul 13, 2023
7 checks passed
@sdirix
Copy link
Member

sdirix commented Jul 13, 2023

We can do an alpha release soon, so you can consume the changes 👍

@JBBianchi
Copy link
Contributor Author

We can do an alpha release soon, so you can consume the changes 👍

That'd be great :)

@sdirix
Copy link
Member

sdirix commented Jul 24, 2023

@JBBianchi 3.1.1-alpha.0 is released

@JBBianchi JBBianchi deleted the delete-on-set-undefined branch August 2, 2023 12:44
@JBBianchi
Copy link
Contributor Author

This feature seems to work as expected but this alpha-0 ships the bug reported (and fixed) in #2166 so I'll wait next release to actually use it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Difference in mapAdditionalProps props.data and global data when setting a prop as undefined via handleChange
4 participants