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

Empty record merge returns undefined #1785

Closed
acrazing opened this issue Sep 9, 2020 · 2 comments · Fixed by immutable-js-oss/immutable-js#23
Closed

Empty record merge returns undefined #1785

acrazing opened this issue Sep 9, 2020 · 2 comments · Fixed by immutable-js-oss/immutable-js#23

Comments

@acrazing
Copy link

acrazing commented Sep 9, 2020

For example:

import { Record } from 'immutable';

const emptyRecord = Record({})();

console.log(emptyRecord.merge({ id: 1 })); // -> undefined, expected result is emptyRecord

See CodeSandbox

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants
@acrazing and others