JavaScript Immutable javascript with direct property access immutable javascript to object,immutable in javascript,immutable in javascript

I'm implementing Immutable.js in a set of React components with props containing objects, where Immutable has not been used before.

While I was rewriting all { someProp.someValue } to { someProp.get("someValue") } (since Immutable don't have the props directly accessable), I am just wondering if it could have been possible to have the object properties directly accessable while the object is still immutable.

I guess the reason is that if they where directly accessable, they would be mutable because that's how javascript objects work. However, could it not be possible to freeze the objects (in browsers supporting it of course), and still have the mutating methods (.set, .map etc) create copies instead of changing the object itself the way Immutable work?

Is that technically possible, and is there any library doing something like this allready?

Answer:1

Previously, I was able to reroute user (e.g. on successful login) using browser history: import { browserHistory } from 'react-router' browserHistory.replace('/home') In the new react-router I am ...

Previously, I was able to reroute user (e.g. on successful login) using browser history: import { browserHistory } from 'react-router' browserHistory.replace('/home') In the new react-router I am ...

return fetch(`{SERVICE API URL}`, { method: 'GET', headers: { 'userName': "username", 'password': "password", 'content-type': 'application/json' } }) .then(response => ...

return fetch(`{SERVICE API URL}`, { method: 'GET', headers: { 'userName': "username", 'password': "password", 'content-type': 'application/json' } }) .then(response => ...

  1. react redux redirect unauthorized

I'm struggling to get the content of the tag <text> $( "svg" ).click(function(e) { console.log("we are in the svg element"); //console.log(e.target.next("text")); }); <...

I'm struggling to get the content of the tag <text> $( "svg" ).click(function(e) { console.log("we are in the svg element"); //console.log(e.target.next("text")); }); <...

  1. text case converter
  2. casetext
  3. text case css
  4. text case changer
  5. text case change
  6. text case randomizer
  7. text case in excel
  8. text case types
  9. text case online
  10. text case alternator
  11. text cases and materials on contract law
  12. text case in word
  13. text case app
  14. text case change online
  15. text case converter online
  16. text case transform
  17. text cases and materials on criminal law
  18. text case change in excel
  19. text cases in ms word
  20. text case convertor

I'm building an interface for a webmail: I receive the content of the mail, I put it in a <div> element where it display the message. The problem is that every mail has the <style> tag ...

I'm building an interface for a webmail: I receive the content of the mail, I put it in a <div> element where it display the message. The problem is that every mail has the <style> tag ...