multiple locations [1] get record name using ._name which is marked as deprecated [2]
we could have an utility function that uses the modern way and falls back to _name if not found to be backward compatible but allow future versions of immutable to drop ._name.
[1]
|
record._name || record.constructor.name || 'Record', |
|
record._name || record.constructor.name || 'Record', |
[2] https://github.com/immutable-js/immutable-js/blob/9acd11a87e1c628f08639f9ae0539073f4ee46d8/src/Record.js#L63
multiple locations [1] get record name using
._namewhich is marked as deprecated [2]we could have an utility function that uses the modern way and falls back to
_nameif not found to be backward compatible but allow future versions of immutable to drop._name.[1]
immutable-devtools/packages/devtools/src/createFormatters.ts
Line 121 in 3bd80e8
immutable-devtools/packages/devtools/src/createFormatters.ts
Line 148 in 3bd80e8
[2] https://github.com/immutable-js/immutable-js/blob/9acd11a87e1c628f08639f9ae0539073f4ee46d8/src/Record.js#L63