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

Facebook's Immutable-js #4

Closed
pasviegas opened this issue Jul 31, 2014 · 3 comments
Closed

Facebook's Immutable-js #4

pasviegas opened this issue Jul 31, 2014 · 3 comments

Comments

@pasviegas
Copy link

Would be possible to use facebook's immutable-js to hold the immutable value?

@Raynos
Copy link

Raynos commented Jul 31, 2014

That would be possible but then this stops working:

value.val() // => { items: [1,2,3,4], name: '4 numbers'}

Currently reading the value returns a plain javascript data structure.

If you use Immutable-js internally it will return an Immutable-js data structure.

Converting Immutable-js data structures back to javascript data structures defeats the point of using Immutable-js in the first place.

@josephsavona
Copy link
Owner

Agree with @Raynos - this would make more sense if immutable data
structures were native to JavaScript, so that .val() returned "plain"
arrays/objects. Hopefully someday soon!

Joe Savona
joesavona@gmail.com
415.527.6874

@josephsavona
Copy link
Owner

Closing for now, though we'll continue to think about this for the future.

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

No branches or pull requests

3 participants