This repository was archived by the owner on Jul 23, 2021. It is now read-only.
This repository was archived by the owner on Jul 23, 2021. It is now read-only.
URGENT: Set on immutable record class returns a records without extended methods #141
Open
Description
From @bogomazov on Sat, 15 Jun 2019 08:06:26 GMT
What happened
Applying .set()
to extended immutable record returns just an immutable record without class methods that were in place in the old Immutable record
How to reproduce
- Have a class with some getter method extending Immutable record.
- Create an object using the class.
- Log the object (notice existing getter method)
- Log a new object returning from "set" operation.
- Notice missing class methods.
Copied from original issue: immutable-js#1718